download from releases instead
This commit is contained in:
+17
-6
@@ -33,12 +33,23 @@ if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
|||||||
rm -rf ./AppDir/usr/share/rpcs3/git
|
rm -rf ./AppDir/usr/share/rpcs3/git
|
||||||
|
|
||||||
# Download translations
|
# Download translations
|
||||||
curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/contents/qm" \
|
mkdir -p "./AppDir/usr/translations"
|
||||||
| grep '"download_url":' \
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
||||||
| cut -d '"' -f 4 \
|
| grep "browser_download_url" \
|
||||||
| while read -r url; do
|
| grep "RPCS3-languages.zip" \
|
||||||
curl -fsSL "$url" -o "./AppDir/usr/translations/$(basename "$url")"
|
| cut -d '"' -f 4)
|
||||||
done
|
if [ -z "$ZIP_URL" ]; then
|
||||||
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
||||||
|
else
|
||||||
|
echo "Downloading translations from: $ZIP_URL"
|
||||||
|
curl -L -o translations.zip "$ZIP_URL" || {
|
||||||
|
echo "Failed to download translations.zip. Continuing without translations."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
unzip -o translations.zip -d "./AppDir/usr/translations" >/dev/null 2>&1 || \
|
||||||
|
echo "Failed to extract translations.zip. Continuing without translations."
|
||||||
|
rm -f translations.zip
|
||||||
|
fi
|
||||||
|
|
||||||
curl -fsSLo /uruntime "https://github.com/VHSgunzo/uruntime/releases/download/v0.3.4/uruntime-appimage-dwarfs-$CPU_ARCH"
|
curl -fsSLo /uruntime "https://github.com/VHSgunzo/uruntime/releases/download/v0.3.4/uruntime-appimage-dwarfs-$CPU_ARCH"
|
||||||
chmod +x /uruntime
|
chmod +x /uruntime
|
||||||
|
|||||||
+16
-6
@@ -33,12 +33,22 @@ rm -rf "rpcs3.app/Contents/Frameworks/QtPdf.framework" \
|
|||||||
|
|
||||||
# Download translations
|
# Download translations
|
||||||
mkdir -p "rpcs3.app/Contents/translations"
|
mkdir -p "rpcs3.app/Contents/translations"
|
||||||
curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/contents/qm" \
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
||||||
| grep '"download_url":' \
|
| grep "browser_download_url" \
|
||||||
| cut -d '"' -f 4 \
|
| grep "RPCS3-languages.zip" \
|
||||||
| while read -r url; do
|
| cut -d '"' -f 4)
|
||||||
curl -fsSL "$url" -o "rpcs3.app/Contents/translations/$(basename "$url")"
|
if [ -z "$ZIP_URL" ]; then
|
||||||
done
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
||||||
|
else
|
||||||
|
echo "Downloading translations from: $ZIP_URL"
|
||||||
|
curl -L -o translations.zip "$ZIP_URL" || {
|
||||||
|
echo "Failed to download translations.zip. Continuing without translations."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
unzip -o translations.zip -d "rpcs3.app/Contents/translations" >/dev/null 2>&1 || \
|
||||||
|
echo "Failed to extract translations.zip. Continuing without translations."
|
||||||
|
rm -f translations.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Hack
|
# Hack
|
||||||
install_name_tool -delete_rpath /opt/homebrew/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/lib not needed"
|
install_name_tool -delete_rpath /opt/homebrew/lib RPCS3.app/Contents/MacOS/rpcs3 || echo "Hack for deleting rpath /opt/homebrew/lib not needed"
|
||||||
|
|||||||
+16
-6
@@ -34,12 +34,22 @@ rm -rf "rpcs3.app/Contents/Frameworks/QtPdf.framework" \
|
|||||||
|
|
||||||
# Download translations
|
# Download translations
|
||||||
mkdir -p "rpcs3.app/Contents/translations"
|
mkdir -p "rpcs3.app/Contents/translations"
|
||||||
curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/contents/qm" \
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
||||||
| grep '"download_url":' \
|
| grep "browser_download_url" \
|
||||||
| cut -d '"' -f 4 \
|
| grep "RPCS3-languages.zip" \
|
||||||
| while read -r url; do
|
| cut -d '"' -f 4)
|
||||||
curl -fsSL "$url" -o "rpcs3.app/Contents/translations/$(basename "$url")"
|
if [ -z "$ZIP_URL" ]; then
|
||||||
done
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
||||||
|
else
|
||||||
|
echo "Downloading translations from: $ZIP_URL"
|
||||||
|
curl -L -o translations.zip "$ZIP_URL" || {
|
||||||
|
echo "Failed to download translations.zip. Continuing without translations."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
unzip -o translations.zip -d "rpcs3.app/Contents/translations" >/dev/null 2>&1 || \
|
||||||
|
echo "Failed to extract translations.zip. Continuing without translations."
|
||||||
|
rm -f translations.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Need to do this rename hack due to case insensitive filesystem
|
# Need to do this rename hack due to case insensitive filesystem
|
||||||
mv rpcs3.app RPCS3_.app
|
mv rpcs3.app RPCS3_.app
|
||||||
|
|||||||
@@ -26,12 +26,22 @@ curl -fsSL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 1> .
|
|||||||
|
|
||||||
# Download translations
|
# Download translations
|
||||||
mkdir -p ./bin/share/qt6/translations
|
mkdir -p ./bin/share/qt6/translations
|
||||||
curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/contents/qm" \
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
||||||
| grep '"download_url":' \
|
| grep "browser_download_url" \
|
||||||
| cut -d '"' -f 4 \
|
| grep "RPCS3-languages.zip" \
|
||||||
| while read -r url; do
|
| cut -d '"' -f 4)
|
||||||
curl -fsSL "$url" -o "./bin/share/qt6/translations/$(basename "$url")"
|
if [ -z "$ZIP_URL" ]; then
|
||||||
done
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
||||||
|
else
|
||||||
|
echo "Downloading translations from: $ZIP_URL"
|
||||||
|
curl -L -o translations.zip "$ZIP_URL" || {
|
||||||
|
echo "Failed to download translations.zip. Continuing without translations."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
unzip -o translations.zip -d "./bin/share/qt6/translations" >/dev/null 2>&1 || \
|
||||||
|
echo "Failed to extract translations.zip. Continuing without translations."
|
||||||
|
rm -f translations.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Package artifacts
|
# Package artifacts
|
||||||
7z a -m0=LZMA2 -mx9 "$BUILD" ./bin/*
|
7z a -m0=LZMA2 -mx9 "$BUILD" ./bin/*
|
||||||
|
|||||||
+16
-6
@@ -17,12 +17,22 @@ curl -fsSL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 1> .
|
|||||||
|
|
||||||
# Download translations
|
# Download translations
|
||||||
mkdir -p ./bin/qt6/translations
|
mkdir -p ./bin/qt6/translations
|
||||||
curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/contents/qm" \
|
ZIP_URL=$(curl -fsSL "https://api.github.com/repos/RPCS3/rpcs3_translations/releases/latest" \
|
||||||
| grep '"download_url":' \
|
| grep "browser_download_url" \
|
||||||
| cut -d '"' -f 4 \
|
| grep "RPCS3-languages.zip" \
|
||||||
| while read -r url; do
|
| cut -d '"' -f 4)
|
||||||
curl -fsSL "$url" -o "./bin/qt6/translations/$(basename "$url")"
|
if [ -z "$ZIP_URL" ]; then
|
||||||
done
|
echo "Failed to find RPCS3-languages.zip in the latest release. Continuing without translations."
|
||||||
|
else
|
||||||
|
echo "Downloading translations from: $ZIP_URL"
|
||||||
|
curl -L -o translations.zip "$ZIP_URL" || {
|
||||||
|
echo "Failed to download translations.zip. Continuing without translations."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
unzip -o translations.zip -d "./bin/qt6/translations" >/dev/null 2>&1 || \
|
||||||
|
echo "Failed to extract translations.zip. Continuing without translations."
|
||||||
|
rm -f translations.zip
|
||||||
|
fi
|
||||||
|
|
||||||
# Download SSL certificate (not needed with CURLSSLOPT_NATIVE_CA)
|
# Download SSL certificate (not needed with CURLSSLOPT_NATIVE_CA)
|
||||||
#curl -fsSL 'https://curl.haxx.se/ca/cacert.pem' 1> ./bin/cacert.pem
|
#curl -fsSL 'https://curl.haxx.se/ca/cacert.pem' 1> ./bin/cacert.pem
|
||||||
|
|||||||
Reference in New Issue
Block a user