-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.cmd
27 lines (22 loc) · 861 Bytes
/
build.cmd
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
REM Normal Build
go build -o ./build/rocat.exe
go build -o ./build/rocat-shrink.exe -ldflags "-s -w"
REM Build Executable for Windows Amd64
set GOARCH=amd64
go build -o ./build/amd64/rocat-windows-amd64.exe
go build -o ./build/amd64/rocat-windows-amd64-shrink.exe -ldflags "-s -w"
REM Build Executable for Windows Arm
set GOARCH=arm
go build -o ./build/arm/rocat-windows-arm.exe
go build -o ./build/arm/rocat-windows-arm-shrink.exe -ldflags "-s -w"
REM Set Compile Settings for Linux
set GOOS=linux
set GOHOSTOS=linux
REM Build Executable for Linux
set GOARCH=amd64
go build -o ./build/linux-amd64/rocat-linux-amd64
go build -o ./build/linux-amd64/rocat-windows-amd64-shrink -ldflags "-s -w"
REM Build Executable for Linux
set GOARCH=arm
go build -o ./build/linux-arm/rocat-linux-arm
go build -o ./build/linux-arm/rocat-windows-arm-shrink -ldflags "-s -w"