diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-08 21:26:39 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-08 21:26:39 +0200 |
| commit | f67bcd793194789ab78452f9d4f3133ce2517ee1 (patch) | |
| tree | a165993055fd77f46cd84ff31837d935a8a2b139 /typora-bin/doinst.sh | |
| parent | c99d4e7047f2242a7aeb3585d200a3e0a2b91f01 (diff) | |
| download | my-slackbuilds-f67bcd793194789ab78452f9d4f3133ce2517ee1.tar.gz my-slackbuilds-f67bcd793194789ab78452f9d4f3133ce2517ee1.zip | |
typora-bin: add version 1.14.9
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>
Diffstat (limited to 'typora-bin/doinst.sh')
| -rw-r--r-- | typora-bin/doinst.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/typora-bin/doinst.sh b/typora-bin/doinst.sh new file mode 100644 index 0000000..16b9893 --- /dev/null +++ b/typora-bin/doinst.sh @@ -0,0 +1,13 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi + +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f -q usr/share/icons/hicolor >/dev/null 2>&1 + fi +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 |
