Use new AppImageKit repo, work around missing FUSE (like in docker)
This commit is contained in:
parent
d597f306a8
commit
454e68ebe9
1 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
CURRENT_APPIMAGEKIT_RELEASE=9
|
||||||
|
|
||||||
set -eo >/dev/null
|
set -eo >/dev/null
|
||||||
|
|
||||||
if [[ $# -lt 1 ]]; then
|
if [[ $# -lt 1 ]]; then
|
||||||
|
@ -15,7 +17,7 @@ fi
|
||||||
|
|
||||||
download_if_needed() {
|
download_if_needed() {
|
||||||
if ! test -f "$1"; then
|
if ! test -f "$1"; then
|
||||||
if ! curl -L -o "$1" https://github.com/probonopd/AppImageKit/releases/download/continuous/"$1"; then
|
if ! curl -L -o "$1" "https://github.com/AppImage/AppImageKit/releases/download/${CURRENT_APPIMAGEKIT_RELEASE}/$1"; then
|
||||||
echo "Failed to download appimagetool"
|
echo "Failed to download appimagetool"
|
||||||
echo "Please supply it manually"
|
echo "Please supply it manually"
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -25,7 +27,7 @@ download_if_needed() {
|
||||||
}
|
}
|
||||||
|
|
||||||
download_if_needed appimagetool-x86_64.AppImage
|
download_if_needed appimagetool-x86_64.AppImage
|
||||||
download_if_needed AppRun
|
download_if_needed AppRun-x86_64
|
||||||
|
|
||||||
# Extract the tarball build into a folder
|
# Extract the tarball build into a folder
|
||||||
rm -rf love-prepared
|
rm -rf love-prepared
|
||||||
|
@ -36,7 +38,7 @@ cd love-prepared
|
||||||
|
|
||||||
# Add our small wrapper script (yay, more wrappers), and AppRun
|
# Add our small wrapper script (yay, more wrappers), and AppRun
|
||||||
cp ../wrapper usr/bin/wrapper-love
|
cp ../wrapper usr/bin/wrapper-love
|
||||||
cp ../AppRun .
|
cp ../AppRun-x86_64 AppRun
|
||||||
|
|
||||||
# Add our desktop file
|
# Add our desktop file
|
||||||
sed -e 's/%BINPREFIX%/wrapper-/' -e 's/%ICONPREFIX%//' love.desktop.in > love.desktop
|
sed -e 's/%BINPREFIX%/wrapper-/' -e 's/%ICONPREFIX%//' love.desktop.in > love.desktop
|
||||||
|
@ -47,4 +49,7 @@ cp love.svg .DirIcon
|
||||||
|
|
||||||
# Now build the final AppImage
|
# Now build the final AppImage
|
||||||
cd ..
|
cd ..
|
||||||
./appimagetool-x86_64.AppImage love-prepared love-${VERSION}-x86_64.AppImage
|
|
||||||
|
# Work around missing FUSE/docker
|
||||||
|
./appimagetool-x86_64.AppImage --appimage-extract
|
||||||
|
./squashfs-root/AppRun love-prepared love-${VERSION}-x86_64.AppImage
|
||||||
|
|
Loading…
Reference in a new issue