From f67bcd793194789ab78452f9d4f3133ce2517ee1 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sat, 8 Aug 2026 21:26:39 +0200 Subject: 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 --- typora-bin/doinst.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 typora-bin/doinst.sh (limited to 'typora-bin/doinst.sh') 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 -- cgit v1.2.3