File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
all :
4
4
@echo " Usage:"
5
- @echo " • make release - build release binary on Mac"
6
- @echo " • make linux - build release binary on Linux through Docker"
5
+ @echo " • make release - build release binary on macOS"
6
+ @echo " • make cross-linux - build release binary on Linux through Docker"
7
+ @echo " • make cross-windows - build release binary on Windows"
7
8
8
9
release :
9
10
go build -ldflags ' -s -w' -o g64drive-mac.binary
10
11
upx --quiet --quiet --lzma g64drive-mac.binary
11
12
12
- linux :
13
+ cross- linux :
13
14
docker build -t g64drive_linux .
14
15
docker run --rm --entrypoint cat g64drive_linux /src/g64drive_linux > g64drive-linux64.binary
15
16
chmod +x g64drive-linux64.binary
16
17
upx --quiet --quiet --lzma g64drive-linux64.binary
18
+
19
+ cross-windows :
20
+ env GOOS=windows GOARCH=amd64 CGO_ENABLED=1 CC=" x86_64-w64-mingw32-gcc" go build -ldflags ' -s -w'
21
+ upx --quiet --quiet --lzma g64drive.exe
You can’t perform that action at this time.
0 commit comments