Modernise flatpak build
This commit is contained in:
parent
f5a3f9469b
commit
bef0130345
3 changed files with 5 additions and 13 deletions
|
@ -24,17 +24,13 @@ fi
|
|||
rm -rf files
|
||||
mkdir files
|
||||
tar xf ../tarball/love-${VERSION}-${ARCH}.tar.gz -C files --strip-components=1
|
||||
|
||||
cd files
|
||||
|
||||
# Add our small wrapper script (yay, more wrappers)
|
||||
mkdir -p bin
|
||||
cp ../wrapper bin/wrapper
|
||||
|
||||
# The export dir contains metadata for the host
|
||||
mkdir -p ../export
|
||||
|
||||
# Add our desktop file
|
||||
sed -e 's/%BINARY%/wrapper/' -e 's/%ICON%/org.love2d.love/' love.desktop.in > ../export/org.love2d.love.desktop
|
||||
sed -e 's|%BINARY%|/app/love|' -e 's/%ICON%/org.love2d.love/' love.desktop.in > ../export/org.love2d.love.desktop
|
||||
rm love.desktop.in
|
||||
|
||||
# "Install" the icon
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
name=org.love2d.love
|
||||
runtime=org.freedesktop.Platform/x86_64/1.4
|
||||
sdk=org.freedesktop.Sdk/x86_64/1.4
|
||||
command=wrapper
|
||||
command=/app/love
|
||||
|
||||
[Context]
|
||||
shared=network;
|
||||
sockets=x11;pulseaudio;session-bus;
|
||||
filesystem=xdg-data;
|
||||
device=dri;
|
||||
devices=dri;
|
||||
|
||||
[Session Bus Policy]
|
||||
org.freedesktop.ScreenSaver=talk
|
||||
|
||||
[Extension org.freedesktop.Platform.GL]
|
||||
version=1.2
|
||||
version=1.4
|
||||
directory=lib/GL
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
export LD_LIBRARY_PATH=/app/lib/GL
|
||||
exec /app/love "$@"
|
Loading…
Reference in a new issue