@@ -47,12 +47,12 @@ find /usr/lib* -name WebKitNetworkProcess -exec mkdir -p "$(dirname '{}')" \; -e
4747find /usr/lib* -name WebKitWebProcess -exec mkdir -p " $( dirname ' {}' ) " \; -exec cp --parents ' {}' " ." \; || true
4848find /usr/lib* -name libwebkit2gtkinjectedbundle.so -exec mkdir -p " $( dirname ' {}' ) " \; -exec cp --parents ' {}' " ." \; || true
4949
50- wget -q -4 -N -O " {{tauri_tools_path}}/AppRun " https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${ARCH} || wget -q -4 -N -O " {{tauri_tools_path}}/AppRun " https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-${ARCH}
51- chmod +x " {{tauri_tools_path}}/AppRun"
50+ ( cd " {{tauri_tools_path}} " && ( wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${ARCH} || wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-${ARCH} ) )
51+ chmod +x " {{tauri_tools_path}}/AppRun- ${ARCH} "
5252
5353# We need AppRun to be installed as {{app_name}}.AppDir/AppRun.
5454# Otherwise the linuxdeploy scripts will default to symlinking our main bin instead and will crash on trying to launch.
55- cp " {{tauri_tools_path}}/AppRun" .
55+ cp " {{tauri_tools_path}}/AppRun- ${ARCH} " AppRun
5656
5757cp " {{icon_path}}" .DirIcon
5858ln -s " {{icon_path}}" " {{app_name}}.png"
@@ -63,18 +63,18 @@ cd ..
6363
6464if [[ " $APPIMAGE_BUNDLE_GSTREAMER " != " 0" ]]; then
6565 gst_plugin=" --plugin gstreamer"
66- wget -q -4 -N -O linuxdeploy-plugin-gstreamer.sh " https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gstreamer/master/linuxdeploy-plugin-gstreamer.sh"
66+ wget -q -4 -N " https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gstreamer/master/linuxdeploy-plugin-gstreamer.sh"
6767 chmod +x linuxdeploy-plugin-gstreamer.sh
6868else
6969 gst_plugin=" "
7070fi
7171
72- wget -q -4 -N -O " {{tauri_tools_path}}/linuxdeploy-plugin-gtk.sh " https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh
73- wget -q -4 -N -O " {{tauri_tools_path}}/linuxdeploy- ${ARCH} .AppImage " https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-${linuxdeploy_arch} .AppImage
72+ ( cd " {{tauri_tools_path}}" && wget -q -4 -N https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh )
73+ ( cd " {{tauri_tools_path}} " && wget -q -4 -N https://github.com/tauri-apps/binary-releases/releases/download/linuxdeploy/linuxdeploy-${linuxdeploy_arch} .AppImage )
7474
7575chmod +x " {{tauri_tools_path}}/linuxdeploy-plugin-gtk.sh"
76- chmod +x " {{tauri_tools_path}}/linuxdeploy-${ARCH } .AppImage"
76+ chmod +x " {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch } .AppImage"
7777
78- dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=" {{tauri_tools_path}}/linuxdeploy-${ARCH } .AppImage"
78+ dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=" {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch } .AppImage"
7979
80- OUTPUT=" {{appimage_filename}}" " {{tauri_tools_path}}/linuxdeploy-${ARCH } .AppImage" --appimage-extract-and-run --appdir " {{app_name}}.AppDir" --plugin gtk ${gst_plugin} --output appimage
80+ OUTPUT=" {{appimage_filename}}" " {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch } .AppImage" --appimage-extract-and-run --appdir " {{app_name}}.AppDir" --plugin gtk ${gst_plugin} --output appimage
0 commit comments