Skip to content

Commit

Permalink
build: update build script
Browse files Browse the repository at this point in the history
  • Loading branch information
sereneblue committed Nov 19, 2021
1 parent a639e11 commit ec37dbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ mv build/ ../assets/
cd ..

# build executables
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.cookieStoreSecret=$COOKIE_SECRET'" -o bin/lakitu-windows_amd64.exe cmd/server/main.go
CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.CookieStoreSecret=$COOKIE_SECRET'" -o bin/lakitu-windows_amd64.exe cmd/server/main.go
zip -j dist/lakitu_$VERSION-windows.zip bin/lakitu-windows_amd64.exe

CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'main.cookieStoreSecret=$COOKIE_SECRET'" -o bin/lakitu-linux_amd64 cmd/server/main.go
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'main.CookieStoreSecret=$COOKIE_SECRET'" -o bin/lakitu-linux_amd64 cmd/server/main.go
zip -j dist/lakitu_$VERSION-linux.zip bin/lakitu-linux_amd64

0 comments on commit ec37dbb

Please sign in to comment.