Package Details: wolfram-js-frontend-bin 2.3.7-1

Git Clone URL: https://aur.archlinux.org/wolfram-js-frontend-bin.git (read-only, click to copy)
Package Base: wolfram-js-frontend-bin
Description: Open-source Wolfram Frontend & Interpreter & Fullstack Framework written in Javascript
Upstream URL: https://jerryi.github.io/wljs-docs/
Keywords: & framework frontend fullstack in interpreter javascript open-source wolfram written
Licenses: GPL3
Conflicts: wolfram-js-frontend
Provides: wolfram-js-frontend
Submitter: AronYoung
Maintainer: AsukaMinato (AliceAierlanta)
Last Packager: AsukaMinato
Votes: 1
Popularity: 0.002893
First Submitted: 2023-09-04 08:05 (UTC)
Last Updated: 2024-05-30 08:22 (UTC)

Dependencies (6)

Required by (0)

Sources (1)

Latest Comments

AsukaMinato commented on 2023-10-10 23:19 (UTC)

the new version has some problems

pkgname=wolfram-js-frontend-bin
pkgver=0.3.1
_ver=0.9.9
pkgrel=1
pkgdesc="Open-source Wolfram Frontend & Interpreter & Fullstack Framework written in Javascript"
arch=(x86_64)
url="https://jerryi.github.io/wljs-docs/"
license=('GPL3')
depends=(electron)
# install one of them
optdepends=(wolframengine
    mathematica)
source=("https://github.com/JerryI/wolfram-js-frontend/releases/download/$_ver/WLJS.Notebook-${pkgver}.AppImage")

sha256sums=('a6d9816c2cf39100687fb2acd073f7dd49ac098a980a5c31c6ce48e27c505567')

prepare() {
    chmod +x ./*.AppImage
    ./*.AppImage --appimage-extract
}

package() {
    install -d $pkgdir/opt/$pkgname
    printf "resources\n"
    find $srcdir -name "resources" -type d -print -exec cp -r -v {} $pkgdir/opt/$pkgname \;
    printf "bin\n"
    printf "#!/usr/bin/bash\nelectron /opt/$pkgname/resources/app\n" | install -Dm755 /dev/stdin $pkgdir/usr/bin/wljs-frontend
    find $srcdir -name "*.desktop" -print -exec sed -i 's/^Exec=.*/Exec=wljs-frontend/' {} \; -exec install -Dm644 {} -t $pkgdir/usr/share/applications/ \;
    find $srcdir -name "wljs-frontend.png" -print -exec install -Dm644 {} -t $pkgdir/usr/share/pixmaps/ \;
    # bsdtar -xvf $srcdir/data.tar.* -C $pkgdir
}

after install, run wljs-frontend, it will

Error launching app
Unable to find Electron app at /opt/wolfram-js-frontend-bin/resources/app

Cannot find module '/opt/wolfram-js-frontend-bin/resources/app'
Require stack:
- /usr/lib/electron25/resources/default_app.asar/main.js

so stuck

FabioLolix commented on 2023-09-03 17:36 (UTC)

Hello,

  • at the moment this is a disguised -bin pkgbuild and the program is open source, you can both re-upload with -bin suffix and correct this pkgbuild to build from source but this can't stay as it is now

AronYoung commented on 2023-09-03 04:32 (UTC)

Attempting to extract Electron from the package can have unintended consequences, as evidenced by the error message "Error: EACCES: permission denied, open 'opt/WLJS Notebook/resources/app/pkg.zip'".