From 5db40d07a512a07b4b8628d124331676d566a8ab Mon Sep 17 00:00:00 2001 From: rzmk Date: Tue, 20 Feb 2024 13:09:51 -0500 Subject: [PATCH] feat: add updater --- .github/workflows/publish.yml | 10 ++++------ src-tauri/tauri.conf.json | 8 ++++++++ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f3cad17..852153e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,9 +5,9 @@ on: tags: - "*" workflow_dispatch: - -# This is the example from the readme. -# 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. +env: + TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} + TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }} jobs: publish-tauri: @@ -17,8 +17,6 @@ jobs: fail-fast: false matrix: settings: - # - platform: "macos-latest" - # args: "--target universal-apple-darwin" - platform: "macos-latest" args: "--target x86_64-apple-darwin" - platform: "macos-latest" @@ -59,7 +57,7 @@ jobs: with: tagName: v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app 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 prerelease: false args: ${{ matrix.settings.args }} diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index cd3a8a2..f7e4984 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -35,6 +35,14 @@ "plugins": { "shell": { "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",