fix: build arguments for linux

When using the Nix Package manager the built executables are dynamic and
look for nix paths. My server doesn have those.
This commit is contained in:
Itsigo
2024-04-12 18:09:29 +02:00
parent 96ec48483a
commit b0b9af408f
3 changed files with 14 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ build:
@rm -rf tmp/release/tallytome
@mkdir -p tmp/release/tallytome
@templ generate
@go build main.go
@GOARCH="amd64" GOOS="linux" go build main.go
@mv main tallytome
@mv tallytome tmp/release/tallytome
@cp -r public tmp/release/tallytome
@cp -r public tmp/release/tallytome