mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
CI: Don't silence curl errors
-f: https://curl.se/docs/manpage.html#-f Only redirect stdout so stderr isn't lost. (stdin isn't needed?)
This commit is contained in:
parent
d4cf12bc17
commit
7e4cb20ac3
5 changed files with 13 additions and 13 deletions
|
@ -5,11 +5,11 @@ cd build || exit 1
|
||||||
if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
if [ "$DEPLOY_APPIMAGE" = "true" ]; then
|
||||||
DESTDIR=AppDir ninja install
|
DESTDIR=AppDir ninja install
|
||||||
|
|
||||||
curl -sL -o /usr/bin/linuxdeploy https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
curl -fsSLo /usr/bin/linuxdeploy https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
|
||||||
chmod +x /usr/bin/linuxdeploy
|
chmod +x /usr/bin/linuxdeploy
|
||||||
curl -sL -o /usr/bin/linuxdeploy-plugin-qt https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
curl -fsSLo /usr/bin/linuxdeploy-plugin-qt https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
|
||||||
chmod +x /usr/bin/linuxdeploy-plugin-qt
|
chmod +x /usr/bin/linuxdeploy-plugin-qt
|
||||||
curl -sL -o linuxdeploy-plugin-checkrt.sh https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
curl -fsSLo linuxdeploy-plugin-checkrt.sh https://github.com/linuxdeploy/linuxdeploy-plugin-checkrt/releases/download/continuous/linuxdeploy-plugin-checkrt-x86_64.sh
|
||||||
chmod +x ./linuxdeploy-plugin-checkrt.sh
|
chmod +x ./linuxdeploy-plugin-checkrt.sh
|
||||||
|
|
||||||
EXTRA_QT_PLUGINS="svg;" APPIMAGE_EXTRACT_AND_RUN=1 linuxdeploy --appdir AppDir --plugin qt
|
EXTRA_QT_PLUGINS="svg;" APPIMAGE_EXTRACT_AND_RUN=1 linuxdeploy --appdir AppDir --plugin qt
|
||||||
|
|
|
@ -9,8 +9,8 @@ rm -rf ./bin/git
|
||||||
|
|
||||||
# Prepare compatibility database for packaging, as well as
|
# Prepare compatibility database for packaging, as well as
|
||||||
# certificate for ssl (auto-updater)
|
# certificate for ssl (auto-updater)
|
||||||
curl -sL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 > ./bin/GuiConfigs/compat_database.dat
|
curl -fsSL 'https://rpcs3.net/compatibility?api=v1&export' | iconv -t UTF-8 1> ./bin/GuiConfigs/compat_database.dat
|
||||||
curl -sL 'https://curl.haxx.se/ca/cacert.pem' > ./bin/cacert.pem
|
curl -fsSL 'https://curl.haxx.se/ca/cacert.pem' 1> ./bin/cacert.pem
|
||||||
|
|
||||||
# Package artifacts
|
# Package artifacts
|
||||||
7z a -m0=LZMA2 -mx9 "$BUILD" ./bin/*
|
7z a -m0=LZMA2 -mx9 "$BUILD" ./bin/*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh -ex
|
#!/bin/sh -ex
|
||||||
|
|
||||||
curl -L -o "./llvm.lock" "https://github.com/RPCS3/llvm-mirror/releases/download/custom-build-win-16.0.1/llvmlibs_mt.7z.sha256"
|
curl -fLo "./llvm.lock" "https://github.com/RPCS3/llvm-mirror/releases/download/custom-build-win-16.0.1/llvmlibs_mt.7z.sha256"
|
||||||
curl -L -o "./glslang.lock" "https://github.com/RPCS3/glslang/releases/download/custom-build-win/glslanglibs_mt.7z.sha256"
|
curl -fLo "./glslang.lock" "https://github.com/RPCS3/glslang/releases/download/custom-build-win/glslanglibs_mt.7z.sha256"
|
||||||
|
|
|
@ -16,7 +16,7 @@ generate_post_data()
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
curl -s \
|
curl -fsS \
|
||||||
-H "Authorization: token ${RPCS3_TOKEN}" \
|
-H "Authorization: token ${RPCS3_TOKEN}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
--data "$(generate_post_data)" "https://api.github.com/repos/$UPLOAD_REPO_FULL_NAME/releases" >> release.json
|
--data "$(generate_post_data)" "https://api.github.com/repos/$UPLOAD_REPO_FULL_NAME/releases" >> release.json
|
||||||
|
@ -28,7 +28,7 @@ echo "${id:?}"
|
||||||
|
|
||||||
upload_file()
|
upload_file()
|
||||||
{
|
{
|
||||||
curl -s \
|
curl -fsS \
|
||||||
-H "Authorization: token ${RPCS3_TOKEN}" \
|
-H "Authorization: token ${RPCS3_TOKEN}" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Content-Type: application/octet-stream" \
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
|
|
@ -60,7 +60,7 @@ download_and_verify()
|
||||||
fileName="$4"
|
fileName="$4"
|
||||||
|
|
||||||
for _ in 1 2 3; do
|
for _ in 1 2 3; do
|
||||||
[ -e "$CACHE_DIR/$fileName" ] || curl -L -o "$CACHE_DIR/$fileName" "$url"
|
[ -e "$CACHE_DIR/$fileName" ] || curl -fLo "$CACHE_DIR/$fileName" "$url"
|
||||||
fileChecksum=$("${algo}sum" "$CACHE_DIR/$fileName" | awk '{ print $1 }')
|
fileChecksum=$("${algo}sum" "$CACHE_DIR/$fileName" | awk '{ print $1 }')
|
||||||
[ "$fileChecksum" = "$correctChecksum" ] && return 0
|
[ "$fileChecksum" = "$correctChecksum" ] && return 0
|
||||||
rm "$CACHE_DIR/$fileName"
|
rm "$CACHE_DIR/$fileName"
|
||||||
|
@ -79,9 +79,9 @@ for url in $DEP_URLS; do
|
||||||
|
|
||||||
# shellcheck disable=SC1003
|
# shellcheck disable=SC1003
|
||||||
case "$url" in
|
case "$url" in
|
||||||
*qt*) checksum=$(curl -L "${url}.sha1"); algo="sha1"; outDir='C:\Qt\' ;;
|
*qt*) checksum=$(curl -fL "${url}.sha1"); algo="sha1"; outDir='C:\Qt\' ;;
|
||||||
*llvm*) checksum=$(curl -L "${url}.sha256"); algo="sha256"; outDir="./3rdparty/llvm" ;;
|
*llvm*) checksum=$(curl -fL "${url}.sha256"); algo="sha256"; outDir="./3rdparty/llvm" ;;
|
||||||
*glslang*) checksum=$(curl -L "${url}.sha256"); algo="sha256"; outDir="./lib/Release-x64" ;;
|
*glslang*) checksum=$(curl -fL "${url}.sha256"); algo="sha256"; outDir="./lib/Release-x64" ;;
|
||||||
*Vulkan*)
|
*Vulkan*)
|
||||||
# Vulkan setup needs to be run in batch environment
|
# Vulkan setup needs to be run in batch environment
|
||||||
# Need to subshell this or else it doesn't wait
|
# Need to subshell this or else it doesn't wait
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue