Do full path replacements for executable and icon in desktop file
Also fix missing mkdir in flatpak build
This commit is contained in:
parent
753cefc89b
commit
614e246d2f
4 changed files with 7 additions and 5 deletions
|
@ -42,7 +42,7 @@ cp ../wrapper usr/bin/wrapper-love
|
|||
cp ../AppRun-${ARCH} AppRun
|
||||
|
||||
# Add our desktop file
|
||||
sed -e 's/%BINPREFIX%/wrapper-/' -e 's/%ICONPREFIX%//' love.desktop.in > love.desktop
|
||||
sed -e 's/%BINARY%/wrapper-love/' -e 's/%ICON%/love/' love.desktop.in > love.desktop
|
||||
rm love.desktop.in
|
||||
|
||||
# Add a DirIcon
|
||||
|
|
|
@ -31,8 +31,10 @@ cd files
|
|||
mkdir -p bin
|
||||
cp ../wrapper bin/wrapper
|
||||
|
||||
mkdir -p ../export
|
||||
|
||||
# Add our desktop file
|
||||
sed -e 's/%BINPREFIX%love/wrapper/' -e 's/%ICONPREFIX%/org.love2d./' love.desktop.in > ../export/org.love2d.love.desktop
|
||||
sed -e 's/%BINARY%/wrapper/' -e 's/%ICON%/org.love2d.love/' love.desktop.in > ../export/org.love2d.love.desktop
|
||||
rm love.desktop.in
|
||||
|
||||
# "Install" the icon
|
||||
|
|
|
@ -26,7 +26,7 @@ cd love-prepared
|
|||
# First, our icon and desktop file
|
||||
mkdir -p meta/gui
|
||||
mv love.svg meta/gui/icon.svg
|
||||
sed -e 's/%BINPREFIX%//' -e '/%ICONPREFIX%/d' love.desktop.in > meta/gui/love.desktop
|
||||
sed -e 's/%BINARY%/love/' -e '/%ICON%/d' love.desktop.in > meta/gui/love.desktop
|
||||
rm love.desktop.in
|
||||
|
||||
# Now the yaml and launcher
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
Name=LÖVE
|
||||
Comment=The unquestionably awesome 2D game engine
|
||||
MimeType=application/x-love-game;
|
||||
Exec=%BINPREFIX%love %f
|
||||
Exec=%BINARY% %f
|
||||
Type=Application
|
||||
Categories=Development;Game;
|
||||
Terminal=false
|
||||
Icon=%ICONPREFIX%love
|
||||
Icon=%ICON%
|
||||
NoDisplay=true
|
||||
|
|
Loading…
Reference in a new issue