feat: add updater

This commit is contained in:
rzmk 2024-02-20 13:09:51 -05:00
parent 9f463f658f
commit 5db40d07a5
No known key found for this signature in database
2 changed files with 12 additions and 6 deletions

View file

@ -5,9 +5,9 @@ on:
tags: tags:
- "*" - "*"
workflow_dispatch: workflow_dispatch:
env:
# This is the example from the readme. TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
# On each push to the `release` branch it will create or update a GitHub release, build your app, and upload the artifacts to the release. TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
jobs: jobs:
publish-tauri: publish-tauri:
@ -17,8 +17,6 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
settings: settings:
# - platform: "macos-latest"
# args: "--target universal-apple-darwin"
- platform: "macos-latest" - platform: "macos-latest"
args: "--target x86_64-apple-darwin" args: "--target x86_64-apple-darwin"
- platform: "macos-latest" - platform: "macos-latest"
@ -59,7 +57,7 @@ jobs:
with: with:
tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__" releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version of fformat and install." releaseBody: "Learn about this release at https://github.com/rzmk/fformat/releases"
releaseDraft: true releaseDraft: true
prerelease: false prerelease: false
args: ${{ matrix.settings.args }} args: ${{ matrix.settings.args }}

View file

@ -35,6 +35,14 @@
"plugins": { "plugins": {
"shell": { "shell": {
"open": "^https://github\\.com/rzmk" "open": "^https://github\\.com/rzmk"
},
"updater": {
"active": true,
"endpoints": [
"https://github.com/rzmk/fformat/releases/latest/download/latest.json"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5NkYxRUMxOTBFRkE1REQKUldUZHBlK1F3UjV2R1ZTUStEVXRBVE1NdnN6YUZIWFhJMUZuUzFwWTlCeDRCVzU1d1VsNEVkeWkK"
} }
}, },
"identifier": "com.fformat.dev", "identifier": "com.fformat.dev",