Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ci): quote filenames in R2 upload — spaces in 'screenpipe beta' broke basename

Louis Beaumont466c5ba5754d
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 7e4f5cfb7..4a357ec64 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -959,14 +959,14 @@ jobs:
echo "uploading ${TARGET} bundles for v${VERSION} to R2..."
- # Upload DMG
- for f in ${BUNDLE_DIR}/dmg/*.dmg; do
- [ -f "$f" ] && aws s3 cp "$f" "${R2_PREFIX}/$(basename $f)" --endpoint-url "$R2_ENDPOINT" && echo " ✅ $(basename $f)"
+ # Upload DMG (quote paths — filenames may contain spaces like "screenpipe beta_2.0.422_x64.dmg")
+ find "${BUNDLE_DIR}/dmg" -name "*.dmg" -type f | while IFS= read -r f; do
+ aws s3 cp "$f" "${R2_PREFIX}/$(basename "$f")" --endpoint-url "$R2_ENDPOINT" && echo " ✅ $(basename "$f")"
done
# Upload updater artifacts (.tar.gz + .sig)
- for f in ${BUNDLE_DIR}/macos/*.tar.gz ${BUNDLE_DIR}/macos/*.sig; do
- [ -f "$f" ] && aws s3 cp "$f" "${R2_PREFIX}/$(basename $f)" --endpoint-url "$R2_ENDPOINT" && echo " ✅ $(basename $f)"
+ find "${BUNDLE_DIR}/macos" \( -name "*.tar.gz" -o -name "*.sig" \) -type f | while IFS= read -r f; do
+ aws s3 cp "$f" "${R2_PREFIX}/$(basename "$f")" --endpoint-url "$R2_ENDPOINT" && echo " ✅ $(basename "$f")"
done
echo "R2 upload complete for ${TARGET}"