Package Details: typora 1.10.7-2

Git Clone URL: https://aur.archlinux.org/typora.git (read-only, click to copy)
Package Base: typora
Description: A minimal markdown editor and reader.
Upstream URL: https://typora.io/
Keywords: markdown
Licenses: custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."
Submitter: duckbrain
Maintainer: irgendwr
Last Packager: irgendwr
Votes: 134
Popularity: 0.20
First Submitted: 2016-09-28 06:28 (UTC)
Last Updated: 2025-02-24 22:15 (UTC)

Pinned Comments

irgendwr commented on 2023-01-24 18:49 (UTC) (edited on 2023-10-17 21:03 (UTC) by irgendwr)

Before flagging this package as "out-of-date", please read this:

First of all, I appreciate your help, but I'm already running a script that notifies me once a new version is available. Please wait 1-2 days before flagging, unless it is critical. Usually I manage to push updates on the same day as Typora releases them.

Also: The latest version on their website might not be the latest Linux repository version. E.g. because some updates do not have any changes related to Linux.

To check the latest Linux version, run the following command: curl -s https://www.typora.io/linux/Packages | grep Version | cut -f 2 -d ' ' | sort -V | cut -f 1 -d '-' | uniq

Please do not flag this package as "out-of-date" if the "new version" is not listed in the output of the aforementioned command.

irgendwr commented on 2021-11-26 12:36 (UTC) (edited on 2022-10-09 11:03 (UTC) by irgendwr)

Typora is no longer completely free since it's out of beta. It is possible to use Typora for free on Linux; Some restrictions may apply. See the official FAQ: "Can I use Typora for free?" for more details. Alternatively you can purchase a license.

Please report issues with Typora here: https://github.com/typora/typora-issues

Latest Comments

1 2 3 4 5 6 .. 13 Next › Last »

irgendwr commented on 2025-02-28 19:15 (UTC) (edited on 2025-02-28 20:01 (UTC) by irgendwr)

@xsy420 looks like a neat tool, but my simple shell script is working fine, so I don't see a reason to switch.

The release page might show newer versions, but I'd rather follow Typoras APT repository since that's also the recommended "source of truth" for most of the other distributions.

xsy420 commented on 2025-02-28 17:07 (UTC) (edited on 2025-02-28 17:08 (UTC) by xsy420)

what about using nvchecker to get newer version? like this

[typora-amd]
source = "regex"
url = "https://typora.io/releases/stable.html"
regex = "typora_([0-9\\.]+)_amd64.deb"

[typora-arm]
source = "regex"
url = "https://typora.io/releases/stable.html"
regex = "typora_([0-9\\.]+)_arm64.deb"

irgendwr commented on 2025-02-24 22:12 (UTC)

Sorry for the broken update, should be fixed now. Thanks for reporting it Catoverflow et al. and for the fix suggested by osaukko, thorko and tixwho :)

Upstream did not publish 1.10.7 for aarch64 yet for some reason, so that will stay at 1.10.6 for now.

I also noticed that two dictionary files have global write access enabled, so I added a workaround for that and will report it to upstream.

osaukko commented on 2025-02-24 19:23 (UTC) (edited on 2025-02-24 19:24 (UTC) by osaukko)

Arm64 still uses tar.xz, while amd64 uses tar.zst. Possible fix:

diff --git a/PKGBUILD b/PKGBUILD
index 6745f85..7d5c41f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -22,7 +22,11 @@ sha512sums_aarch64=('e583d11fc9f6504104d74252cd169ebd29f6849e9e8ac7dbce6da9c5bc9

 package() {
    # unpack archive
-   bsdtar -xf data.tar.xz -C "$pkgdir/"
+    if [[ "$CARCH" == "x86_64" ]]; then
+        bsdtar -xf data.tar.zst -C "$pkgdir/"
+   elif [[ "$CARCH" == "aarch64" ]]; then
+        bsdtar -xf data.tar.xz -C "$pkgdir/"
+    fi
    # remove lintian overrides
    rm -rf "$pkgdir/usr/share/lintian/"
    # replace bin link with custom launch script

thorko commented on 2025-02-24 13:50 (UTC)

Hi, the debian packaging changed the compress algorithm to zstd. so the line need to be changed to

bsdtar -xf data.tar.zst -C "$pkgdir/"

Regards thorko

tee commented on 2025-02-24 12:46 (UTC)

ditto, failed to open data.tar.xz.

simona commented on 2025-02-24 11:17 (UTC)

bsdtar: Error opening archive: Failed to open 'data.tar.xz'

tixwho commented on 2025-02-24 04:36 (UTC)

Looks like typora changed their compression file from .tar.xz to .tar.zst. Changing the suffix on line 25 fixes the issue.

Catoverflow commented on 2025-02-24 04:22 (UTC) (edited on 2025-02-24 04:45 (UTC) by Catoverflow)

In the most recent build I got

==> Entering fakeroot environment...
==> Starting package()...
bsdtar: Error opening archive: Failed to open 'data.tar.xz'
==> ERROR: A failure occurred in package().
    Aborting...
 -> error making: typora-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
typora - exit status 4

I checked with ar -x, seems Typora switched to data.tar.zst from data.tar.xz

irgendwr commented on 2024-08-28 01:33 (UTC)

@KafCoppelia thanks, I updated the url, but I didn't increase pkgrel since this should not trigger an unneeded package update.