Skip to content

Commit

Permalink
fix: #1018 Force IPv4 on wget requests (#1019)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
sanket143 and lucasfernog committed Oct 10, 2020
1 parent 057408d commit 6f5667b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/wget-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch
---

Force IPv4 on `wget` so AppImage bundling doesn't hang.
4 changes: 2 additions & 2 deletions cli/tauri-bundler/src/bundle/templates/appimage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 6f5667b

Please sign in to comment.