diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-08 21:34:56 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-08 21:34:56 +0200 |
| commit | 4e34c235cd982baa2b8f8e01d081f3d148050cba (patch) | |
| tree | 107ff167428e28d853a2614fff14c244654cf00c /typora-bin/doinst.sh | |
| parent | f67bcd793194789ab78452f9d4f3133ce2517ee1 (diff) | |
| download | my-slackbuilds-4e34c235cd982baa2b8f8e01d081f3d148050cba.tar.gz my-slackbuilds-4e34c235cd982baa2b8f8e01d081f3d148050cba.zip | |
typora-bin: install to a versioned /opt directory
Was /opt/Typora-linux-x64 (upstream's own unversioned name), now
/opt/typora-bin-$VERSION, matching kitty-bin and the rest of the repo.
Upgrades can no longer leave a previous release's files behind.
The versioned path is now generated rather than written down twice: the
wrapper ships an @APPDIR@ placeholder that the SlackBuild substitutes,
and the chrome-sandbox setuid line is appended to doinst.sh at build
time. Both would otherwise be stale-version traps on the next bump, the
doinst.sh one silently costing the sandbox its setuid bit.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Diffstat (limited to 'typora-bin/doinst.sh')
| -rw-r--r-- | typora-bin/doinst.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/typora-bin/doinst.sh b/typora-bin/doinst.sh index 16b9893..9d5d664 100644 --- a/typora-bin/doinst.sh +++ b/typora-bin/doinst.sh @@ -9,5 +9,5 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then fi # Chromium's SUID sandbox helper must be setuid root. Re-assert in case the -# package did not preserve the 4755 bit. -chmod 4755 opt/Typora-linux-x64/chrome-sandbox 2>/dev/null +# package did not preserve the 4755 bit. The versioned path is appended by +# the SlackBuild, so it cannot go stale on a version bump. |
