1717 linuxdeploy_arch=" $ARCH "
1818fi
1919
20- mkdir -p " {{app_name }}.AppDir"
21- cp -r ../appimage_deb/data/usr " {{app_name }}.AppDir"
20+ mkdir -p " {{crate_name }}.AppDir"
21+ cp -r ../appimage_deb/data/usr " {{crate_name }}.AppDir"
2222
23- cd " {{app_name }}.AppDir"
23+ cd " {{crate_name }}.AppDir"
2424mkdir -p " usr/bin"
2525mkdir -p " usr/lib"
2626
@@ -56,14 +56,14 @@ find -L /usr/lib* -name libwebkit2gtkinjectedbundle.so -exec mkdir -p "$(dirname
5656( 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} ) )
5757chmod +x " {{tauri_tools_path}}/AppRun-${ARCH} "
5858
59- # We need AppRun to be installed as {{app_name }}.AppDir/AppRun.
59+ # We need AppRun to be installed as {{crate_name }}.AppDir/AppRun.
6060# Otherwise the linuxdeploy scripts will default to symlinking our main bin instead and will crash on trying to launch.
6161cp " {{tauri_tools_path}}/AppRun-${ARCH} " AppRun
6262
6363cp " {{icon_path}}" .DirIcon
64- ln -sf " {{icon_path}}" " {{app_name }}.png"
64+ ln -sf " {{icon_path}}" " {{crate_name }}.png"
6565
66- ln -sf " usr/share/applications/{{app_name }}.desktop" " {{app_name }}.desktop"
66+ ln -sf " usr/share/applications/{{crate_name }}.desktop" " {{crate_name }}.desktop"
6767
6868cd ..
6969
@@ -83,4 +83,4 @@ chmod +x "{{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch}.AppImage"
8383
8484dd if=/dev/zero bs=1 count=3 seek=8 conv=notrunc of=" {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch} .AppImage"
8585
86- OUTPUT=" {{appimage_filename}}" " {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch} .AppImage" --appimage-extract-and-run --appdir " {{app_name }}.AppDir" --plugin gtk ${gst_plugin} --output appimage
86+ OUTPUT=" {{appimage_filename}}" " {{tauri_tools_path}}/linuxdeploy-${linuxdeploy_arch} .AppImage" --appimage-extract-and-run --appdir " {{crate_name }}.AppDir" --plugin gtk ${gst_plugin} --output appimage
0 commit comments