Skip to content

Commit f81421b

Browse files
committed
fix: capture updater artifacts (app.tar.gz/nsis.zip) for auto-update
Tauri updater uses .app.tar.gz on macOS and .nsis.zip on Windows, not .dmg/.exe which are for manual install only.
1 parent 35c31d2 commit f81421b

4 files changed

Lines changed: 20 additions & 16 deletions

File tree

.github/workflows/desktop-release.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -169,13 +169,15 @@ jobs:
169169
name: desktop-${{ matrix.target }}
170170
path: |
171171
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.dmg
172-
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.dmg.sig
172+
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.app.tar.gz
173+
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.app.tar.gz.sig
173174
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.exe
174175
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.exe.sig
176+
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.nsis.zip
177+
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.nsis.zip.sig
175178
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.AppImage
176179
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.AppImage.sig
177180
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.deb
178-
src-tauri/target/${{ matrix.target }}/release/bundle/**/*.deb.sig
179181
180182
publish:
181183
needs: build-tauri
@@ -193,24 +195,24 @@ jobs:
193195
VERSION="${GITHUB_REF_NAME#v}"
194196
RELEASE_URL="https://github.com/GeiserX/CashPilot-Desktop/releases/download/${GITHUB_REF_NAME}"
195197
196-
MACOS_ARM_SIG=$(cat artifacts/desktop-aarch64-apple-darwin/**/*.dmg.sig 2>/dev/null || echo "")
197-
MACOS_X64_SIG=$(cat artifacts/desktop-x86_64-apple-darwin/**/*.dmg.sig 2>/dev/null || echo "")
198-
WINDOWS_SIG=$(cat artifacts/desktop-x86_64-pc-windows-msvc/**/*.exe.sig 2>/dev/null || echo "")
198+
MACOS_ARM_SIG=$(cat artifacts/desktop-aarch64-apple-darwin/**/*.app.tar.gz.sig 2>/dev/null || echo "")
199+
MACOS_X64_SIG=$(cat artifacts/desktop-x86_64-apple-darwin/**/*.app.tar.gz.sig 2>/dev/null || echo "")
200+
WINDOWS_SIG=$(cat artifacts/desktop-x86_64-pc-windows-msvc/**/*.nsis.zip.sig 2>/dev/null || cat artifacts/desktop-x86_64-pc-windows-msvc/**/*.exe.sig 2>/dev/null || echo "")
199201
200-
MACOS_ARM_DMG=$(find artifacts/desktop-aarch64-apple-darwin -name "*.dmg" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
201-
MACOS_X64_DMG=$(find artifacts/desktop-x86_64-apple-darwin -name "*.dmg" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
202-
WINDOWS_EXE=$(find artifacts/desktop-x86_64-pc-windows-msvc -name "*.exe" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
202+
MACOS_ARM_URL=$(find artifacts/desktop-aarch64-apple-darwin -name "*.app.tar.gz" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
203+
MACOS_X64_URL=$(find artifacts/desktop-x86_64-apple-darwin -name "*.app.tar.gz" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
204+
WINDOWS_URL=$(find artifacts/desktop-x86_64-pc-windows-msvc -name "*.nsis.zip" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || find artifacts/desktop-x86_64-pc-windows-msvc -name "*-setup.exe" ! -name "*.sig" 2>/dev/null | head -1 | xargs basename 2>/dev/null || echo "")
203205
204206
# Build platforms JSON dynamically (only include platforms with signatures)
205207
PLATFORMS=""
206208
if [ -n "$MACOS_ARM_SIG" ]; then
207-
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"darwin-aarch64\":{\"signature\":\"${MACOS_ARM_SIG}\",\"url\":\"${RELEASE_URL}/${MACOS_ARM_DMG}\"}"
209+
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"darwin-aarch64\":{\"signature\":\"${MACOS_ARM_SIG}\",\"url\":\"${RELEASE_URL}/${MACOS_ARM_URL}\"}"
208210
fi
209211
if [ -n "$MACOS_X64_SIG" ]; then
210-
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"darwin-x86_64\":{\"signature\":\"${MACOS_X64_SIG}\",\"url\":\"${RELEASE_URL}/${MACOS_X64_DMG}\"}"
212+
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"darwin-x86_64\":{\"signature\":\"${MACOS_X64_SIG}\",\"url\":\"${RELEASE_URL}/${MACOS_X64_URL}\"}"
211213
fi
212214
if [ -n "$WINDOWS_SIG" ]; then
213-
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"windows-x86_64\":{\"signature\":\"${WINDOWS_SIG}\",\"url\":\"${RELEASE_URL}/${WINDOWS_EXE}\"}"
215+
PLATFORMS="${PLATFORMS:+$PLATFORMS,}\"windows-x86_64\":{\"signature\":\"${WINDOWS_SIG}\",\"url\":\"${RELEASE_URL}/${WINDOWS_URL}\"}"
214216
fi
215217
216218
echo "{\"version\":\"${VERSION}\",\"notes\":\"See release notes on GitHub\",\"pub_date\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\",\"platforms\":{${PLATFORMS}}}" > latest.json
@@ -222,12 +224,14 @@ jobs:
222224
with:
223225
files: |
224226
artifacts/desktop-*/**/*.dmg
225-
artifacts/desktop-*/**/*.dmg.sig
227+
artifacts/desktop-*/**/*.app.tar.gz
228+
artifacts/desktop-*/**/*.app.tar.gz.sig
226229
artifacts/desktop-*/**/*.exe
227230
artifacts/desktop-*/**/*.exe.sig
231+
artifacts/desktop-*/**/*.nsis.zip
232+
artifacts/desktop-*/**/*.nsis.zip.sig
228233
artifacts/desktop-*/**/*.AppImage
229234
artifacts/desktop-*/**/*.AppImage.sig
230235
artifacts/desktop-*/**/*.deb
231-
artifacts/desktop-*/**/*.deb.sig
232236
latest.json
233237
generate_release_notes: true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cashpilot-desktop",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"private": true,
55
"scripts": {
66
"tauri": "tauri"

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cashpilot-desktop"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
edition = "2021"
55
license = "GPL-3.0"
66

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-utils/schema.json",
33
"productName": "CashPilot Desktop",
4-
"version": "0.1.2",
4+
"version": "0.1.3",
55
"identifier": "com.cashpilot.desktop",
66
"build": {
77
"frontendDist": "../src"

0 commit comments

Comments
 (0)