Skip to content

Commit bb4af68

Browse files
chore(build): add build script
1 parent 18865f8 commit bb4af68

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
out

build.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
rm -rf out
4+
5+
GOOS=linux GOARCH=amd64 go build -o out/soos-Linux-x86_64 -ldflags='-s -w' soos.go && upx --brute out/soos-Linux-x86_64
6+
GOOS=darwin GOARCH=amd64 go build -o out/soos-Darwin-x86_64 -ldflags='-s -w' soos.go && upx --brute out/soos-Darwin-x86_64
7+
GOOS=windows GOARCH=amd64 go build -o out/soos-Windows-x86_64.exe -ldflags='-s -w' soos.go && upx --brute out/soos-Windows-x86_64.exe

0 commit comments

Comments
 (0)