use curl instead of wget

This commit is contained in:
Joseph Donofry 2022-10-21 00:04:27 -04:00
parent de1ba8b577
commit 8e934e1b9b
No known key found for this signature in database
GPG key ID: E8A1D78EF044B0CB

View file

@ -14,7 +14,7 @@ if [ "${CI_PIPELINE_TRIGGERED}" ]; then
echo "cirrus build id: ${TRIGGER_BUILD_ID}"
cat "${TRIGGER_PAYLOAD}"
# download the build artifacts from cirrus api
wget "https://api.cirrus-ci.com/v1/artifact/build/${TRIGGER_BUILD_ID}/binaries.zip"
curl "https://api.cirrus-ci.com/v1/artifact/build/${TRIGGER_BUILD_ID}/binaries.zip" -o binaries.zip
# cirrus ci artifacts task name is 'binaries' so that's the zip name.
unzip binaries.zip
# we zip 'build/nheko.app' in cirrus ci, cirrus itself puts it in a 'build' directory
@ -24,6 +24,11 @@ if [ "${CI_PIPELINE_TRIGGERED}" ]; then
rm -r build/build
fi
if [ -d "build/nheko.app" ]; then
echo "nheko.app is missing, you did something wrong!"
exit 1
fi
( cd build || exit
# macdeployqt does not copy symlinks over.
# this specifically addresses icu4c issues but nothing else.