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
40 changes: 27 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -44,7 +48,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'yarn'
cache: 'npm'

- name: Rust setup (native)
uses: dtolnay/rust-toolchain@stable
Expand Down Expand Up @@ -127,12 +131,12 @@ jobs:

- name: Install dependencies (node)
run: |
yarn
npm --version
cd ui/frontend
yarn install
npm install

- name: Build Tauri apps
uses: tauri-apps/tauri-action@v0
uses: tauri-apps/tauri-action@dev
id: build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -143,17 +147,27 @@ jobs:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: 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') ) }}
releaseBody: "Tari-Launcher."
#includeDebug: ${{ ( ! startsWith(github.ref, 'refs/tags/v') ) }}
#includeRelease: ${{ ( startsWith(github.ref, 'refs/tags/v') ) }}
includeDebug: false
includeRelease: true
includeUpdaterJson: true
#updaterJsonKeepUniversal: true
updaterJsonKeepUniversal: false
releaseBody: "The Tari-Launcher"
releaseDraft: true
prerelease: true
prerelease: false
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') }}"
9 changes: 7 additions & 2 deletions ui/backend/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": {
"productName": "tari-launchpad",
"version": "0.1.0"
"version": "0.1.1"
},
"build": {
"beforeDevCommand": "yarn dev",
Expand Down Expand Up @@ -58,7 +58,12 @@
}
},
"updater": {
"active": false
"active": true,
"endpoints": [
"https://raw.githubusercontent.com/leet4tari/tari-launchpad/main/deploy/latest.json"
],
"dialog": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDhGMTIwMzNCMDI5OTI3MApSV1J3a2ltd015RHhDTlpQZzNydzdQSklsQkVmeXJ0OTE5Q2RBVFdIM0FCSUIyTlI4ZkR6WkVFVwo="
},
"allowlist": {
"all": true,
Expand Down
Loading