48 lines
1.5 KiB
Markdown
48 lines
1.5 KiB
Markdown
* node22-22.8.0
|
||
* npm-node22-10.8.3
|
||
* golang 1.23 (downloaded with go-1.21_5,2)
|
||
|
||
|
||
* https://docs.gitea.com/installation/install-from-source
|
||
* https://go.dev/doc/manage-install
|
||
|
||
Build source commit:
|
||
|
||
commit 2beaedc4179ba6a3917ca99e2fd95fd2f476925e (HEAD -> main, origin/main, origin/issue-32885, origin/HEAD)
|
||
Author: Exploding Dragon <explodingfkl@gmail.com>
|
||
Date: Wed Dec 18 15:25:05 2024 +0800
|
||
|
||
* npm install -D webpack-cli
|
||
|
||
Download pre-build assets
|
||
* https://dl.gitea.com/gitea/1.23-nightly/gitea-src-1.23-nightly.tar.gz
|
||
* copy or symlink public/assets to custom/public/assets
|
||
* jerry@mango:~/src/github.com/xor-gate/gitea $ ln -s ~/dl/gitea-src-1.21.11/public/assets `<git repo root>/custom/public/assets`
|
||
* Build backend without embedded assets and sqlite: TAGS="sqlite sqlite_unlock_notify" make backend
|
||
|
||
## Custom Adimec build tag
|
||
|
||
```
|
||
Makefile
|
||
108:LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
|
||
```
|
||
|
||
Inject via commandline instead of use via Git tag:
|
||
```
|
||
$ rm gitea
|
||
jerry@mango:~/src/github.com/xor-gate/gitea $ GITEA_VERSION="v1.21.11-adi1" TAGS="sqlite sqlite_unlock_notify" make backend
|
||
```
|
||
|
||
Crosscompile to linux-amd64
|
||
|
||
```
|
||
GOOS="linux" GOARCH="amd64" TAGS="bindata sqlite sqlite_unlock_notify" make backend
|
||
```
|
||
## When Administrator is logged in it should be visual different from normal user #32894
|
||
|
||
* gitea/web_src/css/modules/navbar.css
|
||
* templates/base/head_navbar.tmpl
|
||
* `web_src/css/themes/*.css`
|
||
* use `--color-red-*` for navbar `background-color`
|
||
|