Normalize Windows package filename
All checks were successful
Build / build-windows (push) Successful in 32m52s
Codex Template Compliance / template-compliance (push) Successful in 7s

This commit is contained in:
MrSphay
2026-05-04 08:59:44 +02:00
parent 2dc0e17a54
commit b130cced60

View File

@@ -88,17 +88,15 @@ jobs:
exit 1
fi
for artifact in "${artifacts[@]}"; do
file_name="$(basename "$artifact")"
curl --fail-with-body \
--user "MrSphay:${REGISTRY_TOKEN}" \
--upload-file "$artifact" \
"https://git.wilkensxl.de/api/packages/MrSphay/generic/${package_name}/${package_version}/${file_name}"
done
mkdir -p package-latest
cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe"
curl --fail-with-body \
--user "MrSphay:${REGISTRY_TOKEN}" \
--upload-file "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe" \
"https://git.wilkensxl.de/api/packages/MrSphay/generic/${package_name}/${package_version}/Modrinth-Plus-Windows-Setup-${package_version}.exe"
curl --silent --show-error --user "MrSphay:${REGISTRY_TOKEN}" --request DELETE "${latest_url}" || true
mkdir -p package-latest
cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup.exe"
curl --fail-with-body \