Skip to content

Commit

Permalink
Add updater configuration & signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Dec 10, 2023
1 parent 60baf91 commit f8fa876
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/build-tauri-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ on:
type: boolean
required: false

# Secrets for the updater
secrets:
updaterKey:
required: false
updaterKeyPassword:
required: false

jobs:
tauri:
name: Build Tauri app
Expand Down Expand Up @@ -78,6 +85,8 @@ jobs:
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.updaterKey }}
TAURI_KEY_PASSWORD: ${{ secrets.updaterKeyPassword }}
with:
args: ${{ inputs.args }}
tagName: ${{ inputs.tagName }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,6 @@ jobs:
releaseDraft: true
includeUpdaterJson: true
updaterJsonPreferNsis: true
secrets:
updaterKey: ${{ secrets.TAURI_UPDATER_KEY }}
updaterKeyPassword: ${{ secrets.TAURI_UPDATER_KEY_PASSWORD }}
10 changes: 9 additions & 1 deletion crates/tauri-app/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
"minWidth": 800,
"minHeight": 600
}
]
],
"updater": {
"active": true,
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEY0RDM2QjQ5NjFCRUEwNEEKUldSS29MNWhTV3ZUOUFrOVBjcXgzYjYyaUFjM0xmZVVOSlBLemw2WG1GdXVwQjZ4eU5VRmF6bmwK",
"endpoints": [
"https://github.com/Gawdl3y/Resolute/releases/latest/download/latest.json"
]
}
}
}

0 comments on commit f8fa876

Please sign in to comment.