diff --git a/.github/release-notes/1.3.0.md b/.github/release-notes/1.3.0.md new file mode 100644 index 0000000..3123122 --- /dev/null +++ b/.github/release-notes/1.3.0.md @@ -0,0 +1,14 @@ +BrickDrop 1.3.0 makes disc-image routing more accurate and the SD-card cleanup more robust. + +What's changed: +- Routing now matches system names as whole words, so `business.iso` or `DCollection.iso` are no longer misrouted, while names like `dmg-game.chd` and `DC_Sonic.chd` are recognised. +- A `.bin` is treated as part of a CUE disc set only when a matching CUE exists (same name, or `(Track N)` / `(Disc N)` variants), so unrelated CUE files in the same folder no longer send it to PlayStation. +- `dot_clean` now has a timeout. A hung or output-holding run is stopped and reported as an error instead of leaving the app stuck at "working". +- Expanded test coverage for copy skip/overwrite behaviour, metadata cleanup (including symlink safety), and `.m3u`/CUE reference resolution. +- CI now runs `swift build` and `swift test` on every pull request. + +Requirements: +- Apple silicon Mac (arm64) +- macOS 14 Sonoma or later + +This build is ad-hoc signed but not Apple-notarized. macOS may require Control-click → Open on first launch. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..3e3a19b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,43 @@ +name: Release + +on: + push: + tags: ["v*"] + +permissions: + contents: write + +jobs: + release: + runs-on: macos-15 + steps: + - uses: actions/checkout@v4 + - name: Check tag matches app version + run: | + version=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" Support/Info.plist) + if [ "v$version" != "$GITHUB_REF_NAME" ]; then + echo "Tag $GITHUB_REF_NAME does not match Info.plist version $version" >&2 + exit 1 + fi + - name: Test + run: swift test + - name: Build app + run: ./scripts/build-app.sh + - name: Package + run: | + ditto -c -k --keepParent dist/BrickDrop.app "dist/BrickDrop-${GITHUB_REF_NAME#v}.zip" + shasum -a 256 "dist/BrickDrop-${GITHUB_REF_NAME#v}.zip" | awk '{print $1}' > dist/sha256.txt + - name: Publish release + env: + GH_TOKEN: ${{ github.token }} + run: | + version="${GITHUB_REF_NAME#v}" + notes=".github/release-notes/$version.md" + if [ -f "$notes" ]; then + cp "$notes" dist/notes.md + else + echo "BrickDrop $version" > dist/notes.md + fi + printf '\nSHA-256: %s\n' "$(cat dist/sha256.txt)" >> dist/notes.md + gh release create "$GITHUB_REF_NAME" "dist/BrickDrop-$version.zip" \ + --title "BrickDrop $version" --notes-file dist/notes.md diff --git a/Support/Info.plist b/Support/Info.plist index b834990..345ea44 100644 --- a/Support/Info.plist +++ b/Support/Info.plist @@ -17,9 +17,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.2.1 + 1.3.0 CFBundleVersion - 4 + 5 LSMinimumSystemVersion 14.0 NSHighResolutionCapable