From 6f5667bf72d58972b8d05ee2e42a031c85f95ed4 Mon Sep 17 00:00:00 2001 From: Sanket Chaudhari Date: Sun, 11 Oct 2020 01:22:11 +0530 Subject: [PATCH] fix: #1018 Force IPv4 on wget requests (#1019) Co-authored-by: Lucas Nogueira --- .changes/wget-fix.md | 5 +++++ cli/tauri-bundler/src/bundle/templates/appimage | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changes/wget-fix.md diff --git a/.changes/wget-fix.md b/.changes/wget-fix.md new file mode 100644 index 000000000..070382a06 --- /dev/null +++ b/.changes/wget-fix.md @@ -0,0 +1,5 @@ +--- +"tauri-bundler": patch +--- + +Force IPv4 on `wget` so AppImage bundling doesn't hang. diff --git a/cli/tauri-bundler/src/bundle/templates/appimage b/cli/tauri-bundler/src/bundle/templates/appimage index e7bae9c75..0cfae308c 100644 --- a/cli/tauri-bundler/src/bundle/templates/appimage +++ b/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