Document the self-updating deploy wrapper

This commit is contained in:
raucao committed 2026-11-24 15:19:10 +04:00
1 parent 7138ba91bb
commit a775805564
2 files changed
+11

No files matched your search

+6
View File
@@ -495,6 +495,12 @@ the UI is tested. `build-aux/deploy-dev.sh` runs on the build host,
them and warns. If they drift, update both before debugging anything else.
- `--pkg` builds `build-aux/regent-git/PKGBUILD`, which packages the working
tree and is a preview of the real release packaging.
- The wrapper **updates itself**: it fetches `build-aux/regent-deploy.sh` from the
build host and re-execs when it differs (keeping the previous copy as `.bak`;
`REGENT_DEPLOY_NO_UPDATE=1` skips it). Without that it silently kept running
whatever was installed the first time — a fix reached the repo and never
reached the workstation that way, with no symptom except a step that never ran.
Everything else it runs is fetched per invocation; only the wrapper was a copy.
- The install tree is `/usr`-rooted, so its desktop file says `Exec=regent`.
`regent-deploy` rewrites the copy it installs to the absolute
`~/.local/bin/regent`, because GIO **drops a desktop file whose `Exec` does not
+5
View File
@@ -97,6 +97,11 @@ Then, after every change:
regent-deploy
```
The wrapper keeps itself current: before doing anything it fetches its own copy
from the build host and re-execs if it changed, so the one-time install above
never goes stale. (`REGENT_DEPLOY_NO_UPDATE=1` skips that, and the previous copy
is kept as `regent-deploy.bak`.)
That asks the build host which GTK/libadwaita it builds against, warns if the two
machines have drifted (a mismatch surfaces as a symbol lookup error), pulls the
install tree, unpacks it into `~/.local` (no root needed), recompiles the