Skip to content

Commit

Permalink
feat: add updater functionlaity
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohmn committed Oct 17, 2023
1 parent a33be0e commit eeea8f3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/create-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ jobs:
run: npm install # Change this to npm, yarn or pnpm.

- name: Build the app
uses: tauri-apps/tauri-action@v0

uses: tauri-apps/tauri-action@dev
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
releaseName: 'App Name v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
releaseBody: 'See the assets to download and install this version.'
releaseDraft: true
tagName: __VERSION__v
releaseName: 'smearshot v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: false
prerelease: false
8 changes: 8 additions & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
"systemTray": {
"iconPath": "icons/icon.png",
"iconAsTemplate": true
},
"updater": {
"active": true,
"endpoints": [
"https://github.com/Mohmn/smearshot/releases/latest/download/latest.json"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEQ4MzlFQjJBNTc2RkVFRDMKUldUVDdtOVhLdXM1MlBPMVFNL0RHNURoZTMrOGxRa2RiVEU5MlV5Yk1oRlI4MXpxRlQ4aXBDOTcK"
}
}
}
Expand Down

0 comments on commit eeea8f3

Please sign in to comment.