-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.bat
More file actions
38 lines (29 loc) · 734 Bytes
/
Copy pathbuild.bat
File metadata and controls
38 lines (29 loc) · 734 Bytes
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
37
38
@echo off
echo Building CMDO for all platforms...
REM Create build directory
if not exist build mkdir build
REM Windows builds
echo Building for Windows...
set GOOS=windows
set GOARCH=amd64
go build -o build/cmdo-windows-amd64.exe
set GOARCH=386
go build -o build/cmdo-windows-386.exe
REM macOS builds
echo Building for macOS...
set GOOS=darwin
set GOARCH=amd64
go build -o build/cmdo-macos-intel
set GOARCH=arm64
go build -o build/cmdo-macos-arm64
REM Linux builds
echo Building for Linux...
set GOOS=linux
set GOARCH=amd64
go build -o build/cmdo-linux-amd64
set GOARCH=386
go build -o build/cmdo-linux-386
set GOARCH=arm64
go build -o build/cmdo-linux-arm64
echo Build complete! Files in ./build/ directory:
dir build\