diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml index e1618bf..dd088a9 100644 --- a/.github/workflows/ci-cd.yml +++ b/.github/workflows/ci-cd.yml @@ -262,15 +262,21 @@ jobs: # step's `bash -e` would treat as fatal before `test -n` ever runs. dmg="$(find src-tauri/target target -path '*/universal-apple-darwin/release/bundle/dmg/*.dmg' -print -quit 2>/dev/null || true)" test -n "$dmg" - mv "$dmg" "$(dirname "$dmg")/Eldrun-${{ github.sha }}-universal.dmg" + # Name the published asset by version, like the AppImage/deb/exe + # bundles do — naming it by commit sha made the macOS asset the only + # one a user couldn't match to a release at a glance. Guard the move: + # Tauri may already emit exactly this name, and `mv x x` fails. + version="$(node -p "require('./package.json').version")" + target="$(dirname "$dmg")/Eldrun_${version}_universal.dmg" + [ "$dmg" = "$target" ] || mv "$dmg" "$target" - name: Upload DMG uses: actions/upload-artifact@v4 with: name: eldrun-${{ github.sha }}-macos-universal-dmg path: | - src-tauri/target/universal-apple-darwin/release/bundle/dmg/*-universal.dmg - target/universal-apple-darwin/release/bundle/dmg/*-universal.dmg + src-tauri/target/universal-apple-darwin/release/bundle/dmg/*universal.dmg + target/universal-apple-darwin/release/bundle/dmg/*universal.dmg release: name: release @@ -356,8 +362,11 @@ jobs: with: tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} - # Pre-1.0 tags are alpha/preview builds; mark them so on GitHub. - prerelease: true + # Publish as a full release so the newest tag becomes GitHub's + # "Latest" — a pre-release never does, which left the releases page + # with no latest build and the README's /releases/latest link stale. + # The notes still say alpha; this flag is about discoverability. + prerelease: false body_path: release-body.md fail_on_unmatched_files: false # Recursive globs: the upload steps list two path patterns, so diff --git a/Cargo.lock b/Cargo.lock index 7f719a9..4a187c9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1129,7 +1129,7 @@ checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" [[package]] name = "eldrun" -version = "0.1.32" +version = "0.1.33" dependencies = [ "arboard", "base64 0.22.1", diff --git a/package.json b/package.json index c5b149e..1f00176 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "eldrun", "private": true, - "version": "0.1.33", + "version": "0.1.34", "license": "MIT OR Apache-2.0", "type": "module", "scripts": { diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 933eaa8..82b1a27 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "eldrun" -version = "0.1.33" +version = "0.1.34" edition = "2021" license = "MIT OR Apache-2.0" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 412c483..8caacd4 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -1,6 +1,6 @@ { "productName": "Eldrun", - "version": "0.1.33", + "version": "0.1.34", "identifier": "io.github.fseiffarth.eldrun", "build": { "frontendDist": "../dist",