| Age | Commit message (Collapse) | Author | Files | Lines |
|
Upstream ships its top directory as 0700. The standard SBo perm-normalize
block only remaps the modes it enumerates (777/775/750/711/555/511 and
the 6xx/4xx file set), so 0700 passed through untouched and the whole
tree installed root-only. Launching as a normal user died with
"Permission denied" on the binary.
Normalize every directory to 755 explicitly, before the chrome-sandbox
chmod so the setuid bit is unaffected. BUILD bumped so the fixed package
supersedes the broken one.
Worth noting for other repacks: neither sbopkglint nor a container build
catches this, both run as root, where 0700 is traversable. Verified here
by extracting the package as a normal user and launching the real binary.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
|
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>
|
|
Binary repack of upstream's official Linux x86_64 tarball; Typora is
closed source, so this is not a build from source.
Uses the versioned tarball on downloads.typora.io rather than the
version-agnostic Typora-linux-x64.tar.gz, which serves whatever build is
current and would go md5-stale on every upstream release.
Launch through a wrapper instead of a symlink to the binary: it enables
Electron's Ozone Wayland backend when a Wayland session is detected and
leaves the X11 default alone otherwise, so one package works in both.
Override with TYPORA_OZONE=wayland|x11.
Upstream's bundled updater is dropped; it would overwrite the tree in
/opt behind pkgtool's back.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|