Skip to content

Commit c19bb3f

Browse files
committed
feat: auto-updater config + GitHub Actions release workflow
- Configure Tauri updater with signing pubkey and GitHub Releases endpoint - Add release-desktop.yml workflow: builds macOS (aarch64 + x86_64) and Windows on tag push - Bump tauri.conf.json version to 0.3.0
1 parent 6878941 commit c19bb3f

2 files changed

Lines changed: 75 additions & 3 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Release Desktop App
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: macos-latest
18+
args: '--target aarch64-apple-darwin'
19+
rust_target: aarch64-apple-darwin
20+
- platform: macos-latest
21+
args: '--target x86_64-apple-darwin'
22+
rust_target: x86_64-apple-darwin
23+
- platform: windows-latest
24+
args: ''
25+
rust_target: x86_64-pc-windows-msvc
26+
27+
runs-on: ${{ matrix.platform }}
28+
29+
steps:
30+
- uses: actions/checkout@v4
31+
32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: 20
36+
37+
- name: Install pnpm
38+
uses: pnpm/action-setup@v4
39+
with:
40+
version: 9
41+
42+
- name: Install Rust
43+
uses: dtolnay/rust-toolchain@stable
44+
with:
45+
targets: ${{ matrix.rust_target }}
46+
47+
- name: Install dependencies (macOS)
48+
if: matrix.platform == 'macos-latest'
49+
run: |
50+
pnpm install
51+
cd apps/desktop && pnpm install
52+
53+
- name: Install dependencies (Windows)
54+
if: matrix.platform == 'windows-latest'
55+
run: |
56+
pnpm install
57+
cd apps/desktop && pnpm install
58+
59+
- name: Build desktop app
60+
uses: tauri-apps/tauri-action@v0
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
64+
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
65+
with:
66+
projectPath: apps/desktop
67+
tagName: ${{ github.ref_name }}
68+
releaseName: 'DevDock ${{ github.ref_name }}'
69+
releaseBody: 'See the [changelog](https://github.com/yosnap/devdock/releases) for details.'
70+
releaseDraft: false
71+
prerelease: false
72+
args: ${{ matrix.args }}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "DevDock",
4-
"version": "0.1.0",
4+
"version": "0.3.0",
55
"identifier": "com.paulo.devdock",
66
"build": {
77
"beforeDevCommand": "npm run dev",
@@ -45,9 +45,9 @@
4545
"open": true
4646
},
4747
"updater": {
48-
"pubkey": "",
48+
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDEzQTA5RjE5QzM5NkRCNjUKUldSbDI1YkRHWitnRTNENWh4TFUvRGdMVDQ1aFZ4UDFsNnRQdDZrei94ZEtoSEJIWiszU2ZkQzgK",
4949
"endpoints": [
50-
"https://github.com/paulopinheiro/devdock/releases/latest/download/latest.json"
50+
"https://github.com/yosnap/devdock/releases/latest/download/latest.json"
5151
],
5252
"dialog": true
5353
}

0 commit comments

Comments
 (0)