@@ -33,13 +33,13 @@ function compress() {
33
33
# ensure build directory exists
34
34
rm -rf build; mkdir -p build
35
35
36
- echo " [compile] linux arm " ;
37
- env GOOS=linux GOARCH=arm go build -ldflags=" -s -w" -gcflags=-trimpath=" ${GOPATH} " -asmflags=-trimpath=" ${GOPATH} " ;
36
+ echo " [compile] linux arm64 " ;
37
+ env GOOS=linux GOARCH=arm64 go build -ldflags=" -s -w" -gcflags=-trimpath=" ${GOPATH} " -asmflags=-trimpath=" ${GOPATH} " ;
38
38
assert $? ;
39
39
chmod +x pbf2json;
40
- mv pbf2json build/pbf2json.linux-arm ;
41
- check ' build/pbf2json.linux-arm ' ' ELF 32 -bit LSB executable' ;
42
- compress ' build/pbf2json.linux-arm ' ;
40
+ mv pbf2json build/pbf2json.linux-arm64 ;
41
+ check ' build/pbf2json.linux-arm64 ' ' ELF 64 -bit LSB executable' ;
42
+ compress ' build/pbf2json.linux-arm64 ' ;
43
43
44
44
echo " [compile] linux x64" ;
45
45
env GOOS=linux GOARCH=amd64 go build -ldflags=" -s -w" -gcflags=-trimpath=" ${GOPATH} " -asmflags=-trimpath=" ${GOPATH} " ;
@@ -58,10 +58,20 @@ check 'build/pbf2json.darwin-x64' 'Mach-O 64-bit';
58
58
# UPX disabled due to https://github.com/upx/upx/issues/187
59
59
# compress 'build/pbf2json.darwin-x64';
60
60
61
+ echo " [compile] darwin arm64" ;
62
+ env GOOS=darwin GOARCH=arm64 go build -ldflags=" -s -w" -gcflags=-trimpath=" ${GOPATH} " -asmflags=-trimpath=" ${GOPATH} " ;
63
+ assert $? ;
64
+ chmod +x pbf2json;
65
+ mv pbf2json build/pbf2json.darwin-arm64;
66
+ check ' build/pbf2json.darwin-arm64' ' Mach-O 64-bit' ;
67
+ # UPX disabled due to https://github.com/upx/upx/issues/187
68
+ # note: this is untested, assumed to be the same bug as above
69
+ # compress 'build/pbf2json.darwin-arm64';
70
+
61
71
echo " [compile] windows x64" ;
62
- env GOOS=windows GOARCH=386 go build -ldflags=" -s -w" -gcflags=-trimpath=${GOPATH} -asmflags=-trimpath=${GOPATH} -o pbf2json.exe;
72
+ env GOOS=windows GOARCH=amd64 go build -ldflags=" -s -w" -gcflags=-trimpath=${GOPATH} -asmflags=-trimpath=${GOPATH} -o pbf2json.exe;
63
73
assert $? ;
64
74
chmod +x pbf2json.exe;
65
75
mv pbf2json.exe build/pbf2json.win32-x64;
66
- check ' build/pbf2json.win32-x64' ' PE32 executable' ;
76
+ check ' build/pbf2json.win32-x64' ' PE32+ executable (console) x86-64 ' ;
67
77
compress ' build/pbf2json.win32-x64' ;
0 commit comments