diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 219cd265..4d5a0d2d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: uses: swatinem/rust-cache@v2 with: workspaces: "./src-tauri -> target" - + - uses: pnpm/action-setup@v2 name: Install pnpm with: @@ -42,16 +42,16 @@ jobs: - name: Get pnpm store directory shell: bash run: | - echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV + echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - uses: actions/cache@v3 name: Setup pnpm cache with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - + path: ${{ env.STORE_PATH }} + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- + - name: Sync node version and setup cache uses: actions/setup-node@v4 with: @@ -63,10 +63,12 @@ jobs: run: pnpm install --no-frozen-lockfile && pnpm run build # Change this to npm, yarn or pnpm. - name: Build the app - uses: tauri-apps/tauri-action@v0 + uses: tauri-apps/tauri-action@vdev 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. diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 61b11f9d..a1ea87c0 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -18,7 +18,7 @@ tauri-build = { version = "1.5.0", features = [] } log = "^0.4.20" serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -tauri = { version = "1.5.3", features = [ "http-all", "devtools", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen", "http-all"] } +tauri = { version = "1.5.3", features = [ "updater", "http-all", "devtools", "process-exit", "process-relaunch", "shell-all", "window-set-fullscreen", "http-all"] } tauri-plugin-store = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-localhost = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" } tauri-plugin-log = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1", features = ["colored"] } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 57048597..9e9c920c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -100,7 +100,12 @@ ] }, "updater": { - "active": false + "active": true, + "endpoints": [ + "https://cdn.jsdelivr.net/gh/prayag17/jellyplayer@latest/updater.json" + ], + "dialog": true, + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE1MTczRTNFNjFGQ0JBOEMKUldTTXV2eGhQajRYRmNFSG5EYVF1VE1YaVA5Qjl2WGt6alFWOGo5UCs2SGprTGtNOC9WMC8wTjMK" }, "windows": [ { diff --git a/updater.json b/updater.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/updater.json @@ -0,0 +1 @@ +{}