|
|
@ -34,7 +34,7 @@ cd src/code.gitea.io/gitea |
|
|
|
rm -rf src/code.gitea.io/gitea |
|
|
|
rm -rf src/code.gitea.io/gitea |
|
|
|
git checkout tags/v%{version} |
|
|
|
git checkout tags/v%{version} |
|
|
|
sed -i 's|^var Version = "1.[0-9].[0-9]-dev"$|var Version = "'%{version}'"|g' main.go |
|
|
|
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|^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|^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 |
|
|
|
sed -i 's|^APP_DATA_PATH = data$|APP_DATA_PATH = /var/lib/gitea/data|g' custom/conf/app.ini.sample |
|
|
|