1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

need to fix cross compilation - CGO is the issue

This commit is contained in:
2017-02-15 06:16:52 +00:00
parent 60df4267a9
commit 7dd0782ab3
9 changed files with 21 additions and 11 deletions

View File

@@ -5,10 +5,10 @@ linux:
go build -o ./dist/GoBot-linux ./server/main.go
mac:
GOOS=darwin GOARCH=amd64 go build -o ./dist/GoBot-mac ./server/main.go
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go build -o ./dist/GoBot-mac ./server/main.go
windows:
GOOS=windows GOARCH=386 go build -o ./dist/GoBot-windows.exe ./server/main.go
CGO_ENABLED=1 GOOS=windows GOARCH=386 go build -o ./dist/GoBot-windows.exe ./server/main.go
clean:
rm -rf ./dist
@@ -17,3 +17,4 @@ copyfiles:
cp config.template.json ./dist/config.template.json
all: linux copyfiles
yarn run build