Skip to content

Commit abff3a8

Browse files
committed
add build script
1 parent d4f0720 commit abff3a8

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
*.out
1313

1414
# Dependency directories (remove the comment below to include it)
15-
vendor/
15+
vendor/
16+
17+
output/
18+
.idea

build.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
@echo off
2+
set glc_version=1.0.0
3+
4+
set GOOS=darwin
5+
set GOARCH=amd64
6+
go build -o ./output/glc_%glc_version%_darwin_amd64/glc
7+
8+
set GOOS=windows
9+
set GOARCH=amd64
10+
go build -o ./output/glc_%glc_version%_windows_amd64/glc.exe
11+
12+
set GOOS=linux
13+
set GOARCH=amd64
14+
go build -o ./output/glc_%glc_version%_linux_amd64/glc

0 commit comments

Comments
 (0)