Skip to content

Commit 6f5667b

Browse files
fix: #1018 Force IPv4 on wget requests (#1019)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 057408d commit 6f5667b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changes/wget-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri-bundler": patch
3+
---
4+
5+
Force IPv4 on `wget` so AppImage bundling doesn't hang.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cp -r ../deb/{{bundle_name}}/data/usr {{app_name}}.AppDir
99

1010
cd {{app_name}}.AppDir
1111

12-
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
12+
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
1313
chmod +x AppRun
1414

1515
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
3131

3232
mksquashfs {{app_name}}.AppDir {{app_name}}.squashfs -root-owned -noappend
3333

34-
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
34+
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
3535
chmod +x appimagetool
3636
if lsmod | grep -q fuse; then
3737
./appimagetool {{app_name}}.AppDir {{app_name}}.AppImage

0 commit comments

Comments
 (0)