Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: initial manifest and fixes #4091

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions snap/gui/heroic.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Name=Heroic Games Launcher
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
Loading