Skip to content

Commit

Permalink
snap: added snap manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
soumyaDghosh committed Dec 16, 2024
1 parent fefe280 commit 1d97c12
Show file tree
Hide file tree
Showing 6 changed files with 1,546 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snap/gui/heroic.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
#Name=Heroic Games Launcher
Name=Heroic Snap
Exec=heroic %u
Terminal=false
Type=Application
Icon=${SNAP}/meta/gui/heroic.png
StartupWMClass=Heroic
Comment=An Open Source GOG and Epic Games launcher
Comment[de]=Ein Open Source Spielelauncher for GOG und Epic Games
MimeType=x-scheme-handler/heroic;
Categories=Game;
45 changes: 45 additions & 0 deletions snap/hooks/configure
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh

# https://github.com/canonical/steam-snap/issues/19#issuecomment-1171984524
# https://gist.github.com/jhenstridge/425c769949d034033f3d5d90acc2f181

set -e

mkdir -p $SNAP_DATA/etc

snap_ld_so_conf=$SNAP_DATA/etc/snap-ld.so.conf
snap_ld_so_cache=$SNAP_DATA/etc/snap-ld.so.cache
real_ld_so_cache=$SNAP_DATA/etc/ld.so.cache

RUNTIME=$SNAP/gnome-platform

cat > "$snap_ld_so_conf" <<EOF
/var/lib/snapd/lib/gl
/var/lib/snapd/lib/gl32
$SNAP/lib/x86_64-linux-gnu
$SNAP/lib/i386-linux-gnu
$SNAP/lib
$SNAP/usr/lib/x86_64-linux-gnu
$SNAP/usr/lib/x86_64-linux-gnu/pulseaudio
$SNAP/usr/lib/i386-linux-gnu
$SNAP/usr/lib
$SNAP/usr/lib/x86_64-linux-gnu/dri
$SNAP/usr/lib/i386-linux-gnu/dri
$SNAP/usr/lib/i386-linux-gnu/pulseaudio
$SNAP/graphics/lib
$SNAP/graphics/usr/lib
$SNAP/graphics/usr/lib/i386-linux-gnu
$SNAP/graphics/usr/lib/x86_64-linux-gnu
$SNAP/graphics/usr/lib/i386-linux-gnu/dri
$SNAP/graphics/usr/lib/x86_64-linux-gnu/dri
/lib/x86_64-linux-gnu
/lib/i386-linux-gnu
/usr/lib/x86_64-linux-gnu
/usr/lib/i386-linux-gnu
EOF

ldconfig -X -f $snap_ld_so_conf -C $snap_ld_so_cache

# We need to update the real ld.so.cache in place rather than moving
# over the top of it, since it is the source of a bind mount.
cat $snap_ld_so_cache > $real_ld_so_cache
Loading

0 comments on commit 1d97c12

Please sign in to comment.