mirror of https://github.com/AxioDL/artifacts.git
Don't warn on extra files; use clang build for Linux
This commit is contained in:
parent
2ad0d099b8
commit
6b51857e20
9
main.go
9
main.go
|
@ -50,7 +50,7 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
var platformCompilerMap = map[string]string{
|
var platformCompilerMap = map[string]string{
|
||||||
"linux": "gcc",
|
"linux": "clang",
|
||||||
"macos": "appleclang",
|
"macos": "appleclang",
|
||||||
"win32": "msvc",
|
"win32": "msvc",
|
||||||
}
|
}
|
||||||
|
@ -213,7 +213,6 @@ func writeLinuxTar(zr *zip.Reader, name string, baseDir string) (bool, error) {
|
||||||
tw := tar.NewWriter(of)
|
tw := tar.NewWriter(of)
|
||||||
for _, file := range zr.File {
|
for _, file := range zr.File {
|
||||||
if !strings.HasSuffix(file.Name, ".AppImage") {
|
if !strings.HasSuffix(file.Name, ".AppImage") {
|
||||||
fmt.Println("Unexpected file", file.Name)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -266,10 +265,10 @@ func writeWin32Zip(zr *zip.Reader, name string, baseDir string) (bool, error) {
|
||||||
})
|
})
|
||||||
|
|
||||||
for _, file := range zr.File {
|
for _, file := range zr.File {
|
||||||
if !strings.HasSuffix(file.Name, ".exe") && !strings.HasSuffix(file.Name, ".pdb") {
|
if !strings.HasSuffix(file.Name, ".exe") {
|
||||||
fmt.Println("Unexpected file", file.Name)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
hdr := zip.FileHeader{
|
hdr := zip.FileHeader{
|
||||||
Name: file.Name,
|
Name: file.Name,
|
||||||
Modified: file.Modified,
|
Modified: file.Modified,
|
||||||
|
@ -314,9 +313,9 @@ func writeMacosDmg(zr *zip.Reader, name string, baseDir string) (bool, error) {
|
||||||
|
|
||||||
for _, file := range zr.File {
|
for _, file := range zr.File {
|
||||||
if !strings.HasSuffix(file.Name, ".dmg") {
|
if !strings.HasSuffix(file.Name, ".dmg") {
|
||||||
fmt.Println("Unexpected file", file.Name)
|
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := extractFile(file, of); err != nil {
|
if err := extractFile(file, of); err != nil {
|
||||||
return true, err
|
return true, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue