Browse Source

gitea change build command

Signed-off-by: webbuilder_pel7x64builder0 <webbuilder@powerel.org>
master
webbuilder_pel7x64builder0 5 years ago
parent
commit
b3f4e4f8d9
  1. 2
      SPECS/gitea.spec

2
SPECS/gitea.spec

@ -34,7 +34,7 @@ cd src/code.gitea.io/gitea @@ -34,7 +34,7 @@ cd src/code.gitea.io/gitea
rm -rf src/code.gitea.io/gitea
git checkout tags/v%{version}
sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go
go build -ldflags '-extldflags -s -w -buildid '%{version}
GO111MODULE=on go build -v -ldflags '-extldflags -s -w -buildid '%{version}' -X "main.Version='%{version}'"'
sed -i 's|^STATIC_ROOT_PATH =$|STATIC_ROOT_PATH = /usr/share/gitea/templates/default/|g' custom/conf/app.ini.sample
sed -i 's|^ROOT =$|ROOT = /var/lib/gitea/repositories/|g' custom/conf/app.ini.sample
sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gitea/data|g' custom/conf/app.ini.sample

Loading…
Cancel
Save