minoplhy
f21da7115a
nginx_build_script -> add: arguments to include/not include ModSecurity Lua in build. add: Ninja for BoringSSL build. refactor: use seperated params for ./auto/configure arguments. refactor: build modules.conf directly instead of curl from internet. fix: BoringSSL is disappeared from code for some reason. build_gitea -> refactor: arguments handling. fix: correctly handle BUILD_STATIC as boolean.
42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
# Build Gitea
|
|
It's simple, Build Gitea and done. nothing special.
|
|
|
|
```shell
|
|
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash
|
|
```
|
|
or with a git tag
|
|
|
|
```shell
|
|
curl -L https://github.com/minoplhy/scriptbox/raw/main/build_gitea/Linux/build.sh | bash -s -- -v "v1.18.0"
|
|
```
|
|
|
|
# Arguments
|
|
|
|
```bash
|
|
while [ ${#} -gt 0 ]; do
|
|
case "$1" in
|
|
--git-tag | -v)
|
|
shift
|
|
GITEA_GIT_TAG=$1
|
|
;; # Gitea Git Tag
|
|
--golang-version | -g)
|
|
shift
|
|
GO_VERSION=$1
|
|
;; # GOLANG Version
|
|
--nodejs-version | -n)
|
|
shift
|
|
NODEJS_VERSION=$1
|
|
;; # NodeJS Version
|
|
--static | -s)
|
|
BUILD_STATIC=true
|
|
;; # Build as Static Assets file
|
|
*)
|
|
;;
|
|
esac
|
|
shift # Shift to next response for parsing
|
|
done
|
|
```
|
|
|
|
# Known Issues
|
|
|
|
- This script required root privileges because of dependencies installation, which is hard to avoid. |