aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-21 12:59:14 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2024-05-21 12:59:14 +0300
commitebd28eeef0038fc26eff1c870470f9852bb262b6 (patch)
treefb5288b16e831eac96c7952486e39796076901d5
parentaca86e67cfd36809e2f572efb589f1c83dae9d3c (diff)
downloadapplause2-ebd28eeef0038fc26eff1c870470f9852bb262b6.tar.gz
AppImage: possibly fixed the ILua and Jupyter modes
* when using a CI-built version, it would complain about missing Python modules and cannot find the `ilua` executable
-rw-r--r--AppImage.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/AppImage.yml b/AppImage.yml
index f5c0b87..7f939ce 100644
--- a/AppImage.yml
+++ b/AppImage.yml
@@ -43,10 +43,12 @@ script:
# This custom launcher starts the notebook by default but allows launching the plain CLI as well:
- cat >./usr/bin/applause <<EOF
- #!/bin/sh
+ - HERE="$(dirname "$(readlink -f "${0}")")"
+ - APPDIR=$(readlink -f "$HERE/../../")
- cd ~/
- if [ "\$1" = cli ]; then shift; exec lua "\$@"; fi
- - if [ "\$1" = ilua ]; then shift; exec ilua "\$@"; fi
- - exec jupyter notebook --MultiKernelManager.default_kernel_name=lua "\$@"
+ - if [ "\$1" = ilua ]; then shift; exec python3 "$APPDIR/usr/bin/ilua" "\$@"; fi
+ - exec python3 "$APPDIR/usr/bin/jupyter" notebook --MultiKernelManager.default_kernel_name=lua "\$@"
- EOF
- chmod a+x ./usr/bin/applause
# Some thinning - remove unneeded files