Skip to content

Commit

Permalink
AppImage: possibly fixed the ILua and Jupyter modes
Browse files Browse the repository at this point in the history
* when using a CI-built version, it would complain about missing Python modules and cannot
  find the `ilua` executable
  • Loading branch information
rhaberkorn committed May 21, 2024
1 parent aca86e6 commit ebd28ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions AppImage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ebd28ee

Please sign in to comment.