Browse Source

fix: #1018 Force IPv4 on wget requests (#1019)

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Sanket Chaudhari 4 years ago
parent
commit
6f5667bf72
2 changed files with 7 additions and 2 deletions
  1. 5 0
      .changes/wget-fix.md
  2. 2 2
      cli/tauri-bundler/src/bundle/templates/appimage

+ 5 - 0
.changes/wget-fix.md

@@ -0,0 +1,5 @@
+---
+"tauri-bundler": patch
+---
+
+Force IPv4 on `wget` so AppImage bundling doesn't hang.

+ 2 - 2
cli/tauri-bundler/src/bundle/templates/appimage

@@ -9,7 +9,7 @@ cp -r ../deb/{{bundle_name}}/data/usr {{app_name}}.AppDir
 
 cd {{app_name}}.AppDir
 
-wget -q -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64 || wget -q -O AppRun https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-aarch64
+wget -q -4 -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64 || wget -q -4 -O AppRun https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-aarch64
 chmod +x AppRun
 
 cp usr/share/icons/hicolor/256x256/apps/{{app_name}}.png {{app_name}}.png
@@ -31,7 +31,7 @@ mv {{app_name}}.desktop {{app_name}}.AppDir/{{app_name}}.desktop
 
 mksquashfs {{app_name}}.AppDir {{app_name}}.squashfs -root-owned -noappend
 
-wget -q -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || wget -q -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
+wget -q -4 -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage || wget -q -4 -O appimagetool https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage
 chmod +x appimagetool
 if lsmod | grep -q fuse; then
   ./appimagetool {{app_name}}.AppDir {{app_name}}.AppImage