Skip to content

Commit 2ec2061

Browse files
committed
Fix AppImageLauncher workaround
1 parent 9a47dc0 commit 2ec2061

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ci/build-appimage.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ chmod +x linuxdeploy-"$ARCH".AppImage
5151
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-"$AIK_ARCH".AppImage
5252

5353
chmod +x appimagetool-"$AIK_ARCH".AppImage
54-
55-
sed -i 's/AI\x02/\x00\x00\x00/' {appimagetool,linuxdeploy}*.AppImage
54+
dd if=/dev/zero of=appimagetool-"$AIK_ARCH".AppImage bs=1 count=3 seek=8 conv=notrunc
5655

5756
./appimagetool-"$AIK_ARCH".AppImage --appimage-extract
5857
mv squashfs-root/ AppDir/appimagetool-prefix/
@@ -61,7 +60,7 @@ ln -s ../../appimagetool-prefix/AppRun AppDir/usr/bin/appimagetool
6160
export UPD_INFO="gh-releases-zsync|linuxdeploy|linuxdeploy-plugin-appimage|continuous|linuxdeploy-plugin-appimage-$ARCH.AppImage"
6261

6362
# deploy linuxdeploy-plugin-appimage
64-
sed -i 's|AI\x02|\x00\x00\x00|' linuxdeploy-"$ARCH".AppImage
63+
dd if=/dev/zero of=linuxdeploy-x86_64.AppImage bs=1 count=3 seek=8 conv=notrunc
6564
./linuxdeploy-"$ARCH".AppImage --appimage-extract-and-run \
6665
--appdir AppDir -d "$REPO_ROOT"/resources/linuxdeploy-plugin-appimage.desktop \
6766
-i "$REPO_ROOT"/resources/linuxdeploy-plugin-appimage.svg

0 commit comments

Comments
 (0)