Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Updater for GUI App #363

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
ci(fix): updater - another try
leet4tari committed Jul 1, 2024
commit 773cfe16bb5cba1bf6dde12f1f17490d93ee8ad6
19 changes: 13 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -34,6 +34,10 @@ jobs:
args: ""
- platform: "macos-latest"
args: "--verbose --target universal-apple-darwin"
- platform: "macos-latest" # for Arm based macs (M1 and above).
args: "--target aarch64-apple-darwin"
- platform: "macos-latest" # for Intel based macs.
args: "--target x86_64-apple-darwin"

runs-on: ${{ matrix.platform }}
steps:
@@ -146,18 +150,21 @@ jobs:
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: tari-launchpad-v__VERSION__
tagName: tari-launchpad-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
releaseName: 'tari-launchpad v__VERSION__'
releaseId: '0.1.0'
projectPath: ui
includeDebug: ${{ ( ! startsWith(github.ref, 'refs/tags/v') ) }}
includeRelease: ${{ ( startsWith(github.ref, 'refs/tags/v') ) }}
includeUpdaterJson: true
updaterJsonKeepUniversal: true
releaseBody: "Tari-Launcher"
releaseDraft: true
prerelease: true
args: ${{ matrix.args }}

- name: Upload
uses: actions/upload-artifact@v4
with:
name: tari-launchpad_${{ steps.build.outputs.appVersion }}_${{ matrix.platform }}
path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}"
# - name: Upload
# uses: actions/upload-artifact@v4
# with:
# name: tari-launchpad_${{ steps.build.outputs.appVersion }}_${{ matrix.platform }}
# path: "${{ join(fromJSON(steps.build.outputs.artifactPaths), '\n') }}"
2 changes: 1 addition & 1 deletion ui/backend/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@
"updater": {
"active": true,
"endpoints": [
"https://github.com/{{GITHUB_REPOSITORY}}/releases/download/{{target}}/{{arch}}/{{current_version}}"
"https://github.com/leet4tari/tari-launchpad/releases/download/{{target}}/{{arch}}/{{current_version}}"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDhGMTIwMzNCMDI5OTI3MApSV1J3a2ltd015RHhDTlpQZzNydzdQSklsQkVmeXJ0OTE5Q2RBVFdIM0FCSUIyTlI4ZkR6WkVFVwo="