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 exit 1
fi fi
for artifact in "${artifacts[@]}"; do mkdir -p package-latest
file_name="$(basename "$artifact")" cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe"
curl --fail-with-body \
--user "MrSphay:${REGISTRY_TOKEN}" \ curl --fail-with-body \
--upload-file "$artifact" \ --user "MrSphay:${REGISTRY_TOKEN}" \
"https://git.wilkensxl.de/api/packages/MrSphay/generic/${package_name}/${package_version}/${file_name}" --upload-file "package-latest/Modrinth-Plus-Windows-Setup-${package_version}.exe" \
done "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 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" cp "${artifacts[0]}" "package-latest/Modrinth-Plus-Windows-Setup.exe"
curl --fail-with-body \ curl --fail-with-body \