Skip to content

Commit b888acc

Browse files
committed
fix: add createUpdaterArtifacts to enable .sig generation, revert to tauri-action
1 parent 0029a7f commit b888acc

2 files changed

Lines changed: 14 additions & 60 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -49,64 +49,17 @@ jobs:
4949
- name: Build libmpv
5050
run: ./scripts/build-libmpv.sh macos
5151

52-
- name: Build Tauri app
53-
run: npm run tauri -- build
54-
working-directory: apps/desktop
55-
56-
- name: Sign updater bundle
57-
run: |
58-
npx tauri signer sign \
59-
-k "$TAURI_SIGNING_PRIVATE_KEY" \
60-
-p "$TAURI_SIGNING_PRIVATE_KEY_PASSWORD" \
61-
../../target/release/bundle/macos/MaxVideoPlayer.app.tar.gz
62-
echo "Signed: $(ls ../../target/release/bundle/macos/*.sig)"
63-
working-directory: apps/desktop
64-
65-
- name: Generate latest.json and publish release
66-
run: |
67-
TAG="${{ github.ref_name }}"
68-
VERSION="${TAG#v}"
69-
70-
python3 - <<PYEOF
71-
import json, datetime
72-
73-
version = "$VERSION"
74-
tag = "$TAG"
75-
76-
sig = open("target/release/bundle/macos/MaxVideoPlayer.app.tar.gz.sig").read()
77-
78-
data = {
79-
"version": version,
80-
"notes": "See the [CHANGELOG](https://github.com/MaxMB15/MaxVideoPlayer/blob/main/CHANGELOG.md) for details.",
81-
"pub_date": datetime.datetime.utcnow().strftime("%Y-%m-%dT%H:%M:%SZ"),
82-
"platforms": {
83-
"darwin-aarch64": {
84-
"signature": sig,
85-
"url": f"https://github.com/MaxMB15/MaxVideoPlayer/releases/download/{tag}/MaxVideoPlayer_aarch64.app.tar.gz"
86-
}
87-
}
88-
}
89-
90-
with open("latest.json", "w") as f:
91-
json.dump(data, f, indent=2)
92-
93-
print("Generated latest.json")
94-
print(json.dumps(data, indent=2))
95-
PYEOF
96-
97-
# Rename artifacts to include arch suffix (matches download URL above)
98-
cp target/release/bundle/macos/MaxVideoPlayer.app.tar.gz \
99-
target/release/bundle/macos/MaxVideoPlayer_aarch64.app.tar.gz
100-
cp target/release/bundle/macos/MaxVideoPlayer.app.tar.gz.sig \
101-
target/release/bundle/macos/MaxVideoPlayer_aarch64.app.tar.gz.sig
102-
103-
gh release create "$TAG" \
104-
--title "MaxVideoPlayer $TAG" \
105-
--notes "See the [CHANGELOG](https://github.com/MaxMB15/MaxVideoPlayer/blob/main/CHANGELOG.md) for details." \
106-
--draft \
107-
"target/release/bundle/dmg/MaxVideoPlayer_${VERSION}_aarch64.dmg" \
108-
"target/release/bundle/macos/MaxVideoPlayer_aarch64.app.tar.gz" \
109-
"target/release/bundle/macos/MaxVideoPlayer_aarch64.app.tar.gz.sig" \
110-
"latest.json"
52+
- name: Build and publish release
53+
uses: tauri-apps/tauri-action@v0
11154
env:
112-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
with:
57+
projectPath: apps/desktop
58+
tagName: ${{ github.ref_name }}
59+
releaseName: "MaxVideoPlayer ${{ github.ref_name }}"
60+
releaseBody: |
61+
See the [CHANGELOG](https://github.com/MaxMB15/MaxVideoPlayer/blob/main/CHANGELOG.md) for details.
62+
releaseDraft: true
63+
prerelease: false
64+
updaterJsonPath: latest.json
65+
updaterJsonKeepUniversal: false

apps/desktop/src-tauri/tauri.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"bundle": {
4444
"active": true,
4545
"targets": "all",
46+
"createUpdaterArtifacts": true,
4647
"icon": [
4748
"icons/32x32.png",
4849
"icons/128x128.png",

0 commit comments

Comments
 (0)