chore: auto manifest on version bump; local manual script only
contrib/manifest/generate.py + pre-commit hook; install-git-hooks.sh creates .local/build-release-manifest.sh (gitignored). Remove scripts/ from remote.
This commit is contained in:
@@ -91,13 +91,12 @@ Updater читает **`GIT_REF`**, **`GIT_VERIFY_MODE`**, **`GIT_ALLOW_RESET`**
|
||||
- Файл не найден → WARN, update продолжается (или exit 1 при **`RELEASE_MANIFEST_STRICT=1`**).
|
||||
- Копирование **`update_ssh_monitor.sh`** в `/opt/scripts/` и re-exec — только если manifest для версии был и прошёл verify.
|
||||
|
||||
Генерация при релизе (хеши **из git**, как на Linux после `checkout` — не с диска Windows):
|
||||
Генерация manifest — см. [release-manifest.ru.md](release-manifest.ru.md). После `./contrib/install-git-hooks.sh` manifest обновляется **автоматически** при bump версии в pre-commit. Ручной wrapper: `.local/build-release-manifest.sh` (не в git).
|
||||
|
||||
```bash
|
||||
git add --renormalize ssh-monitor *.sh # при смене .gitattributes
|
||||
./scripts/build-release-manifest.sh 2.2.2-SAC
|
||||
git add release/manifest-2.2.2-SAC.json && git commit -m "release: manifest 2.2.2-SAC"
|
||||
git tag 2.2.2-SAC
|
||||
./contrib/install-git-hooks.sh # один раз после clone
|
||||
# bump version.txt + ssh-monitor → git commit (hook добавит manifest)
|
||||
git tag 2.2.3-SAC
|
||||
```
|
||||
|
||||
### Примеры для прода
|
||||
|
||||
Reference in New Issue
Block a user