From 4e34c235cd982baa2b8f8e01d081f3d148050cba Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 8 Aug 2026 21:34:56 +0200 Subject: 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 --- typora-bin/doinst.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'typora-bin/doinst.sh') 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. -- cgit v1.2.3