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
|
rm -rf files
|
||||||
mkdir files
|
mkdir files
|
||||||
tar xf ../tarball/love-${VERSION}-${ARCH}.tar.gz -C files --strip-components=1
|
tar xf ../tarball/love-${VERSION}-${ARCH}.tar.gz -C files --strip-components=1
|
||||||
|
|
||||||
cd files
|
cd files
|
||||||
|
|
||||||
# Add our small wrapper script (yay, more wrappers)
|
# The export dir contains metadata for the host
|
||||||
mkdir -p bin
|
|
||||||
cp ../wrapper bin/wrapper
|
|
||||||
|
|
||||||
mkdir -p ../export
|
mkdir -p ../export
|
||||||
|
|
||||||
# Add our desktop file
|
# 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
|
rm love.desktop.in
|
||||||
|
|
||||||
# "Install" the icon
|
# "Install" the icon
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
name=org.love2d.love
|
name=org.love2d.love
|
||||||
runtime=org.freedesktop.Platform/x86_64/1.4
|
runtime=org.freedesktop.Platform/x86_64/1.4
|
||||||
sdk=org.freedesktop.Sdk/x86_64/1.4
|
sdk=org.freedesktop.Sdk/x86_64/1.4
|
||||||
command=wrapper
|
command=/app/love
|
||||||
|
|
||||||
[Context]
|
[Context]
|
||||||
shared=network;
|
shared=network;
|
||||||
sockets=x11;pulseaudio;session-bus;
|
sockets=x11;pulseaudio;session-bus;
|
||||||
filesystem=xdg-data;
|
filesystem=xdg-data;
|
||||||
device=dri;
|
devices=dri;
|
||||||
|
|
||||||
[Session Bus Policy]
|
[Session Bus Policy]
|
||||||
org.freedesktop.ScreenSaver=talk
|
org.freedesktop.ScreenSaver=talk
|
||||||
|
|
||||||
[Extension org.freedesktop.Platform.GL]
|
[Extension org.freedesktop.Platform.GL]
|
||||||
version=1.2
|
version=1.4
|
||||||
directory=lib/GL
|
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