diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 6d9b325..c49bc2f 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -85,14 +85,23 @@ jobs: - name: Collect artifacts id: collect - # Gather the installers + their .sig into a flat dist/ for upload. + # Gather the installers + their .sig into a flat dist/ for upload, spaces + # stripped from filenames. productName is "Parking System" (a space), so + # Tauri's bundle output is e.g. "Parking System_0.1.0_amd64.deb" — an + # unescaped space in a filename breaks the later curl asset-upload URL + # ("URL rejected: Malformed input to a URL function", hit on the very + # first v0.1.0 release) AND would land in latest.json's asset url, which + # the updater's plain HTTP GET can't handle either. Rename on copy. run: | set -e BUNDLE=apps/desktop/src-tauri/target/release/bundle mkdir -p dist find "$BUNDLE" \( -name '*.AppImage' -o -name '*.deb' -o -name '*.rpm' \ -o -name '*.AppImage.sig' -o -name '*.deb.sig' -o -name '*.rpm.sig' \) \ - -exec cp {} dist/ \; + -print0 | while IFS= read -r -d '' f; do + name=$(basename "$f" | tr ' ' '-') + cp "$f" "dist/${name}" + done echo "Artifacts:"; ls -la dist/ - name: Assemble latest.json