mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-05 23:03:15 -06:00
move scripts, allow testing both dbs with one cmd
This commit is contained in:
parent
f2e5bedea6
commit
5510a39cf3
13 changed files with 263 additions and 99 deletions
11
scripts/build.sh
Executable file
11
scripts/build.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
COMMIT=$(git rev-list -1 HEAD)
|
||||
VERSION=$(cat ./version)
|
||||
|
||||
CGO_ENABLED=0 go build -trimpath \
|
||||
-tags 'netgo osusergo static_build' \
|
||||
-ldflags="-s -w -extldflags '-static' -X 'main.Commit=${COMMIT}' -X 'main.Version=${VERSION}'" \
|
||||
./cmd/gotosocial
|
||||
Loading…
Add table
Add a link
Reference in a new issue