Package Details: marktext 0.17.1-3

Git Clone URL: https://aur.archlinux.org/marktext.git (read-only, click to copy)
Package Base: marktext
Description: A simple and elegant open-source markdown editor that focused on speed and usability
Upstream URL: https://marktext.app
Keywords: editor electron markdown note
Licenses: MIT
Submitter: dopsi
Maintainer: alerque
Last Packager: alerque
Votes: 27
Popularity: 0.020463
First Submitted: 2018-05-01 08:22 (UTC)
Last Updated: 2022-12-10 10:48 (UTC)

Latest Comments

1 2 3 4 5 6 7 Next › Last »

FabioLolix commented on 2023-02-28 16:08 (UTC)

@shore this could happen with packages build from source, this pkgbuild also need electron15 (from source if you don't use the -bin version), you can use the -bin variants and comment here with less exclamation marks which is annoying to read

shore commented on 2023-02-28 15:28 (UTC)

give up, it cost me more than 3+ hour and 5+ GB of downloading and still installing!!!!!!!!!!!!!!

shore commented on 2023-02-28 14:36 (UTC)

holy....... it costed me 1+ hour and downloaded 2GB+ stuff, and it is still installing

alerque commented on 2022-12-10 09:59 (UTC)

@AlbertoAru Building Marktext from source is always a huge headache. The only sane way to build this package is using a clean CHROOT with exactly the dependencies needed and nothing else. Your error suggests you have a NodeJS version too new to build this with. You can use Arch's makechrootpkg tooling to do this, or just use the prebuilt packages in my user repository.

AlbertoAru commented on 2022-10-20 13:49 (UTC)

I tried several times installing marktext, and it's painful (here's last error I got). I ended up installing marktext-bin, which installed marktext in a moment and works greatly so far.

yochananmarqos commented on 2022-08-24 23:50 (UTC)

@alerque: There's a typo on line 77, so no icons are install except for the unnecessary, gigantic PNG installed in pixmaps.

-   find -name maktext.png -exec \
+   find -name "$pkgname.png" -exec \

cubercsl commented on 2022-08-01 12:27 (UTC) (edited on 2022-08-01 12:40 (UTC) by cubercsl)

@AlbertoAru I tried to build marktext-git with my patch in a clean chroot (build with extra-x86_64-build), and it seems good. This patch is also used in some unofficial repo like ArchLinuxcn.

But I have not tried to build the tag release. So I think using vcs package (marktext-git) is a good choice.

AlbertoAru commented on 2022-07-23 22:41 (UTC)

@cubercsl I tried what your patch and got an error (see below).

I used this method to edit the PKBUILD package and compile from there. I must say, though, that my PKBUILD had electron15 instead of electron11 and cd "$_archive" instead of cd "$pkgname". I did not modified this last part (with cd "$_archive" instead of cd "$pkgname")

==> Removing existing $pkgdir/ directory...
==> Starting build()...
yarn run v1.22.19
$ /home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/.bin/electron-rebuild
✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
Could not detect abi for version 17.4.10 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron

Error: Could not detect abi for version 17.4.10 and runtime electron.  Updating "node-abi" might help solve this issue if it is a new release of electron
    at Object.getAbi (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/node-abi/index.js:39:9)
    at Rebuilder.get ABI [as ABI] (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:82:39)
    at PrebuildInstall.prebuiltModuleExists (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/module-type/prebuild-install.js:61:179)
    at ModuleRebuilder.prebuildInstallNativeModuleExists (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/module-rebuilder.js:64:37)
    at Rebuilder.rebuildModuleAt (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:124:35)
    at async Rebuilder.rebuild (/home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/rebuild.js:108:17)
    at async /home/alberto/.cache/yay/marktext/src/marktext-0.17.1/node_modules/electron-rebuild/lib/src/cli.js:154:9
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
==> ERROR: A failure occurred in build().
    Aborting...

This is with cd "$pkgname" instead of cd "$_archive"

❯ LC_ALL=C makepkg -si
==> Making package: marktext 0.17.1-1 (Sun Jul 24 00:38:16 2022)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found marktext-0.17.1.tar.gz
  -> Found marktext.sh
  -> Found marktext-arg-handling.patch
==> Validating source files with sha256sums...
    marktext-0.17.1.tar.gz ... Passed
    marktext.sh ... Passed
    marktext-arg-handling.patch ... Passed
==> Extracting sources...
  -> Extracting marktext-0.17.1.tar.gz with bsdtar
==> Starting prepare()...
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning file-icons@2.1.47: The engine "atom" appears to be invalid.
warning atom-fs@0.2.1: The engine "atom" appears to be invalid.
warning mapped-disposable@1.0.3: The engine "atom" appears to be invalid.
[3/4] Linking dependencies...
warning " > @electron/remote@2.0.4" has unmet peer dependency "electron@>= 13.0.0".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint@^7.12.1".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
[4/4] Building fresh packages...
Done in 7.89s.
yarn add v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
warning file-icons@2.1.47: The engine "atom" appears to be invalid.
warning atom-fs@0.2.1: The engine "atom" appears to be invalid.
warning mapped-disposable@1.0.3: The engine "atom" appears to be invalid.
[3/4] Linking dependencies...
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint@^7.12.1".
warning " > eslint-config-standard@16.0.3" has incorrect peer dependency "eslint-plugin-promise@^4.2.1 || ^5.0.0".
[4/4] Building fresh packages...
warning Ignored scripts due to flag.
success Saved 1 new dependency.
info Direct dependencies
└─ electron@17.4.10
info All dependencies
└─ electron@17.4.10
Done in 9.68s.
patching file src/main/cli/index.js
Hunk #1 succeeded at 9 with fuzz 2 (offset -1 lines).
==> Removing existing $pkgdir/ directory...
==> Starting build()...
/home/alberto/.cache/yay/marktext/PKGBUILD: line 52: cd: marktext: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...

The file exists because I've been editing it and I have it opened with kate:

❯ ls -la /home/alberto/.cache/yay/marktext/PKGBUILD
-rw-r--r-- 1 alberto alberto 3137 jul 24 00:38 /home/alberto/.cache/yay/marktext/PKGBUILD

cubercsl commented on 2022-03-28 16:52 (UTC)

@chrislea it is because the _electronDist is /usr/lib/electron not /usr/bin

In the past /usr/bin/electron is a symlink of /usr/lib/electron/electron but now it is a wrapper. You can check my patch at marktext-git for reference.