scriptbox/build_gitea/Linux/build.sh

5 lines
296 B
Bash
Raw Normal View History

2022-12-02 13:52:57 +00:00
git clone --depth=1 https://github.com/go-gitea/gitea
cd gitea
LDFLAGS="-X \"code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea/\" -X \"code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini\"" GOOS=linux GOARCH=amd64 make build
mv gitea $DESTINATION/gitea
rm -rf $MAKE_DIR