v0.3.0-prod
This commit is contained in:
1 parent
387933957e
commit
677a0e4d2c
20 files changed
+1239
-180
No files matched your search
@@ -1,7 +1,26 @@
|
||||
.PHONY: test build
|
||||
.PHONY: test build quick dev deb clean
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
# Pelny build produkcyjny: testy + statyczna binarka bez symboli/debug info.
|
||||
build:
|
||||
CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -buildid=" -o bin/ts3monolith ./cmd/ts3monolith
|
||||
CGO_ENABLED=0 go build -trimpath -buildvcs=false -ldflags="-s -w -buildid=" -o bin/ts3monolith ./cmd/ts3monolith
|
||||
|
||||
# Szybka iteracja lokalna: bez testow, bez trimpath/ldflags, z cache'em go
|
||||
# builda -> najszybsza mozliwa petla edit/build podczas developmentu.
|
||||
quick:
|
||||
go build -buildvcs=false -o bin/ts3monolith ./cmd/ts3monolith
|
||||
|
||||
# quick build + natychmiastowe uruchomienie z lokalnym .env (musi istniec,
|
||||
# patrz .env.example).
|
||||
dev: quick
|
||||
@test -f .env || { echo "Brak .env - skopiuj .env.example do .env i uzupelnij sekrety."; exit 1; }
|
||||
set -a; . ./.env; set +a; ./bin/ts3monolith
|
||||
|
||||
# Pakiet .deb + jednostka systemd (scripts/build-deb.sh), wynik w packages/.
|
||||
deb:
|
||||
./scripts/build-deb.sh
|
||||
|
||||
clean:
|
||||
rm -rf bin dist packages
|
||||
Reference in new issue
Block a user