Skip to content

Commit 4f0a89c

Browse files
committed
Allow appimage to be built in a container
1 parent 7db545c commit 4f0a89c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/build-appimage.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ DESTDIR=AppDir cmake --install build
88

99
wget -q -nc https://github.com/linuxdeploy/linuxdeploy/releases/latest/download/linuxdeploy-x86_64.AppImage https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
1010
chmod +x linuxdeploy-*.AppImage
11+
./linuxdeploy-x86_64.AppImage --appimage-extract
12+
mv squashfs-root linuxdeploy
13+
./linuxdeploy-plugin-qt-x86_64.AppImage --appimage-extract
14+
mv squashfs-root linuxdeploy-plugin-qt
15+
rm linuxdeploy-*.AppImage
16+
export PATH="$PWD/linuxdeploy/usr/bin:$PWD/linuxdeploy-plugin-qt/usr/bin:$PATH"
1117

1218
# create fake desktop file
1319
mkdir -p AppDir/usr/share/applications
@@ -25,4 +31,4 @@ EOF
2531
mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
2632
cp assets/blobdrop.svg AppDir/usr/share/icons/hicolor/scalable/apps/
2733

28-
QML_SOURCES_PATHS="$PWD/src/qml" QMAKE=/usr/bin/qmake6 ./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --output appimage
34+
QML_SOURCES_PATHS="$PWD/src/qml" QMAKE="$(which qmake)" linuxdeploy/AppRun --appdir AppDir --plugin qt --output appimage

0 commit comments

Comments
 (0)