-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
36 lines (31 loc) · 1.12 KB
/
build.bat
File metadata and controls
36 lines (31 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
@echo off
echo Build for Windows amd64...
set GOOS=windows
set GOARCH=amd64
go build -o ./release/template/qcs_v0.0.0_windows_amd64/server.exe server.go
go build -o ./release/template/qcs_v0.0.0_windows_amd64/Init/init.exe ./Init/init.go
echo Done.
echo Build for Mac arm64...
set GOOS=darwin
set GOARCH=arm64
go build -o ./release/template/qcs_v0.0.0_darwin_arm64/server server.go
go build -o ./release/template/qcs_v0.0.0_darwin_arm64/Init/init ./Init/init.go
echo Done.
echo Build for Mac amd64
set GOOS=darwin
set GOARCH=amd64
go build -o ./release/template/qcs_v0.0.0_darwin_amd64/server server.go
go build -o ./release/template/qcs_v0.0.0_darwin_amd64/Init/init ./Init/init.go
echo Done.
echo Build for Linux amd64
set GOOS=linux
set GOARCH=amd64
go build -o ./release/template/qcs_v0.0.0_linux_amd64/server server.go
go build -o ./release/template/qcs_v0.0.0_linux_amd64/Init/init ./Init/init.go
echo Done.
echo Build for Linux arm64 v8
set GOOS=linux
set GOARCH=arm64
go build -o ./release/template/qcs_v0.0.0_linux_arm64/server server.go
go build -o ./release/template/qcs_v0.0.0_linux_arm64/Init/init ./Init/init.go
echo Done.