diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index da59c39..9e4bbb4 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -362,6 +362,13 @@ jobs: with: projectPath: apps/desktop + - name: Inject Tauri public key (post) + if: ${{ secrets.TAURI_PUBLIC_KEY != '' }} + env: + TAURI_PUBLIC_KEY: ${{ secrets.TAURI_PUBLIC_KEY }} + run: | + sed -i "s/REPLACE_WITH_TAURI_PUBLIC_KEY/${TAURI_PUBLIC_KEY//\//\\\/}/" apps/desktop/src-tauri/tauri.conf.json || true + - name: Upload latest.json + bundles to VPS uses: appleboy/scp-action@v0.1.7 with: diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml index 1cc6e55..d397d8f 100644 --- a/.github/workflows/desktop-release.yml +++ b/.github/workflows/desktop-release.yml @@ -50,6 +50,14 @@ jobs: - name: Install pnpm deps run: pnpm -C apps/desktop install --frozen-lockfile + - name: Inject Tauri public key + if: ${{ secrets.TAURI_PUBLIC_KEY != '' }} + env: + TAURI_PUBLIC_KEY: ${{ secrets.TAURI_PUBLIC_KEY }} + run: | + set -euo pipefail + sed -i "s/REPLACE_WITH_TAURI_PUBLIC_KEY/${TAURI_PUBLIC_KEY//\//\\\/}/" apps/desktop/src-tauri/tauri.conf.json + - name: Build desktop env: TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} @@ -63,4 +71,3 @@ jobs: with: name: desktop-${{ matrix.platform }} path: apps/desktop/src-tauri/target/release/bundle - diff --git a/apps/desktop/src-tauri/icons/Raven.png b/apps/desktop/src-tauri/icons/Raven.png new file mode 100644 index 0000000..7cb85e9 Binary files /dev/null and b/apps/desktop/src-tauri/icons/Raven.png differ diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index ea01eba..d07aa26 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Raven", - "version": "0.1.0", + "version": "0.1.2", "identifier": "br.com.esdrasrenan.sistemadechamados", "build": { "beforeDevCommand": "pnpm run dev", @@ -35,11 +35,7 @@ "active": true, "targets": "all", "icon": [ - "icons/32x32.png", - "icons/128x128.png", - "icons/128x128@2x.png", - "icons/icon.icns", - "icons/icon.ico" + "icons/raven.png" ] } }