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

Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
This commit is contained in:
Sanket Chaudhari 2020-10-11 01:22:11 +05:30 committed by GitHub
parent 057408d0d9
commit 6f5667bf72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

5
.changes/wget-fix.md Normal file
View File

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

View File

@ -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