Package Details: typora 0.9.58-1

Git Clone URL: https://aur.archlinux.org/typora.git (read-only)
Package Base: typora
Description: Typora will give you a seamless experience as both a reader and a writer.
Upstream URL: https://typora.io/
Keywords: markdown
Licenses: custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."
Submitter: duckbrain
Maintainer: duckbrain
Last Packager: duckbrain
Votes: 43
Popularity: 1.419274
First Submitted: 2016-09-28 06:28
Last Updated: 2018-09-18 02:29

Latest Comments

1 2 3 4 Next › Last »

arch440 commented on 2018-08-24 08:07

That makes sense, I was suggesting it because I noticed a regression/change when keeping the electron dependency: the preference "On Launch - Restore last closed files and folders" is not working anymore, and it always opens in the system Typora folder /usr/share/typora/. This was working before.

duckbrain commented on 2018-08-21 23:20

I prefer having the electron dependency, unless it causes a problem. It makes the package much smaller (44038772 to 8509788 bytes) and prevents having these types of issues in the future.

arch440 commented on 2018-08-17 09:10

Today glibc was updated to 2.28-4, so I guess we can remove the electron dependency now?

duckbrain commented on 2018-08-13 17:20

Sorry, I made the fix @rocka suggested, but I forgot to push it (to the correct remote). I can't get into my machine with the key right now, (NetworkManager keeps stopping sshd) but I'll push it when I can.

In the meantime. If you replace /usr/bin/typora with @rocka's script, it should work.

@Peven, good to know that this is a glibc issue. I'm liking the removing the packaged electron to trim down package size anyway.

Peven commented on 2018-08-13 16:05

The segmentation fault (core dumped) typora can be solved by upgrading glibc to 2.28-4 in testing Repo

rocka commented on 2018-08-13 08:26

@duckbrain That was a mistake, sorry for that ... Maybe we should write typora.sh as below:

#!/usr/bin/bash
exec /usr/bin/electron /usr/share/typora/resources/app $@

the directory /usr/share/typora/resources/app should be where typora's package.json located, that's depends on where we installed it ...

bilabila commented on 2018-08-11 14:03

a way to open with local electron

cd /usr/share/typora/resources/app
electron .

cabbage commented on 2018-08-11 03:24

I also have the segmentation fault after the lastest Syu update. But everyone, please DO NOT downgrade your glibc. It's really really a bad idea to mess with glibc, your whole system could break down. Just wait for fixes from upstream.

duckbrain commented on 2018-08-08 06:03

@rocka, Thanks! That keeps it from being dependent on the system glib and libxss, and makes the package a lot smaller. I can probably remove those as direct dependencies.

Why does your typora.sh cd /usr/share/typora? That breaks opening relative files with it.

The only concern I have is it breaking expecting a different version of node/electron. If anything breaks, I might have to revert it with a new pkgrel.

rocka commented on 2018-08-07 17:09

How about package this with system electron? I've modified the PKGBUILD and It seems to work fine.

PKGBUILD:

pkgname=typora
pkgver=0.9.53
pkgrel=2
pkgdesc="Typora will give you a seamless experience as both a reader and a writer."
arch=('x86_64')
license=('custom:"Copyright (c) 2015 Abner Lee All Rights Reserved."')
url="https://typora.io/"
depends=('gconf' 'libxss' 'electron')
optdepends=('noto-fonts-emoji: Or some other emoji font to see emojis')
source=(
    'typora.sh'
    "https://typora.io/./linux/${pkgname}_${pkgver}_amd64.deb"
)
md5sums=(
    '5851ce5475b7526ae0277e739a5ce6f9'
    '7bf938aa11cc6b8d3dca442e673b057b'
)

package() {
    _src="$srcdir/$pkgname"
    mkdir "$_src"
    bsdtar -xf data.tar.xz -C "$_src/"
    sed -i '/Change Log/d' "$_src/usr/share/applications/typora.desktop"
    install -Dm644 "$_src/usr/share/applications/typora.desktop" "$pkgdir/usr/share/applications/typora.desktop"
    install -Dm644 "$_src/usr/share/doc/typora/copyright" "$pkgdir/usr/share/doc/typora/copyright"
    install -Dm755 "$srcdir/typora.sh" "$pkgdir/usr/bin/typora"

    cp -r "$_src/usr/share/icons" "$pkgdir/usr/share/icons"
    cp -r "$_src/usr/share/typora/resources/app" "$pkgdir/usr/share/typora"
}

typora.sh:

#!/usr/bin/bash

cd /usr/share/typora
exec electron /usr/share/typora $@