1.6 KiB
1.6 KiB
-
node22-22.8.0
-
npm-node22-10.8.3
-
golang 1.23 (downloaded with go-1.21_5,2)
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
- jerry@mango:~/src/github.com/xor-gate/gitea $ ln -s ~/dl/gitea-src-1.21.11/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
(pre-build)Assets are located under public/assets. Runtime assets are located under custom/public/assets.
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 navbarbackground-color