The product name, the channel word "Alpha" and the version were scattered across install.sh, the CLI banner, two spots in App.tsx and three package.json files, so a rename or a bump meant editing strings in code. They now live in one committed .env at the project root (BRAND, CHANNEL, VERSION), shipped inside the release archive and read at runtime: the CLI loads it after cli.env — so real env and machine settings still win — and injects the three values into awg-ui, which serves them from GET /ui/brand for the wordmark. awg-ui also parses the same file directly, so `npm run server` in dev shows what production shows. install.sh keeps its own VERSION and CHANNEL and says why: it prints the banner and builds the release URL before the archive holding .env has been downloaded. It writes BRAND into cli.env only when the operator passed one explicitly, so the file stays the single source otherwise. Version bumped to Beta 0.2.0 across .env, install.sh and the three package.json files.
15 lines
921 B
Bash
15 lines
921 B
Bash
# Имя панели и версия. Единственное место, где они заданы: отсюда их читают CLI
|
|
# (баннер меню) и awg-ui (вордмарк в панели, GET /ui/brand). Файл едет в архив
|
|
# релиза и лежит в /opt/awg-control/.env на сервере.
|
|
#
|
|
# Переменные окружения перекрывают эти значения (BRAND=… в cli.env пишет
|
|
# install.sh, если оператор задал своё имя при установке).
|
|
#
|
|
# ⚠️ VERSION и CHANNEL продублированы в install.sh: установщик печатает баннер и
|
|
# собирает URL релиза ДО того, как архив с этим файлом скачан. При бампе версии
|
|
# правь оба места (и три package.json).
|
|
|
|
BRAND=Forgetting
|
|
CHANNEL=Beta
|
|
VERSION=0.2.0
|