Skip to content

Commit

Permalink
wrap the python call so it's executed as a single command
Browse files Browse the repository at this point in the history
  • Loading branch information
rozyczko committed Sep 20, 2023
1 parent 60d27e3 commit 6c752dd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ architectures:

apps:
sasview:
command: sasview
command: sasview-wrapper
extensions: [gnome-3-38]
plugs: [network, x11, pulseaudio, opengl, home, ssh-keys, removable-media, shmem]
environment:
Expand Down Expand Up @@ -80,8 +80,11 @@ parts:
mkdir -p $SNAPCRAFT_PART_INSTALL/bin
ln -s /usr/bin/python3.8 $SNAPCRAFT_PART_INSTALL/bin/python3.8
# ln -sf ../usr/lib/libsnapcraft-preload.so $SNAPCRAFT_PART_INSTALL/lib/libsnapcraft-preload.so
# Create the launcher
echo "\$SNAP/bin/python3.8 \$SNAP/run.py" > $SNAPCRAFT_PART_INSTALL/sasview-wrapper
chmod +x $SNAPCRAFT_PART_INSTALL/sasview-wrapper
snapcraftctl build --debug
snapcraftctl build
# Apply shebang rewrite as done by snapcraft
find $SNAPCRAFT_PART_INSTALL/bin/ -maxdepth 1 -mindepth 1 -type f -executable -exec \
Expand Down

0 comments on commit 6c752dd

Please sign in to comment.