Don't warn on extra files; use clang build for Linux

This commit is contained in:
Luke Street 2021-04-05 17:14:54 -04:00
parent 2ad0d099b8
commit 6b51857e20
1 changed files with 4 additions and 5 deletions

View File

@ -50,7 +50,7 @@ func main() {
}
var platformCompilerMap = map[string]string{
"linux": "gcc",
"linux": "clang",
"macos": "appleclang",
"win32": "msvc",
}
@ -213,7 +213,6 @@ func writeLinuxTar(zr *zip.Reader, name string, baseDir string) (bool, error) {
tw := tar.NewWriter(of)
for _, file := range zr.File {
if !strings.HasSuffix(file.Name, ".AppImage") {
fmt.Println("Unexpected file", file.Name)
continue
}
@ -266,10 +265,10 @@ func writeWin32Zip(zr *zip.Reader, name string, baseDir string) (bool, error) {
})
for _, file := range zr.File {
if !strings.HasSuffix(file.Name, ".exe") && !strings.HasSuffix(file.Name, ".pdb") {
fmt.Println("Unexpected file", file.Name)
if !strings.HasSuffix(file.Name, ".exe") {
continue
}
hdr := zip.FileHeader{
Name: file.Name,
Modified: file.Modified,
@ -314,9 +313,9 @@ func writeMacosDmg(zr *zip.Reader, name string, baseDir string) (bool, error) {
for _, file := range zr.File {
if !strings.HasSuffix(file.Name, ".dmg") {
fmt.Println("Unexpected file", file.Name)
continue
}
if err := extractFile(file, of); err != nil {
return true, err
}