fix: auto-patch tauri.conf.json version from git tag in CI
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 2m48s

Never manually sync version again. CI reads the tag, patches
the config before building. Also bumped to 1.1.5.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell 2026-03-18 03:37:30 -04:00
parent 0cdc865483
commit 429f41d853
2 changed files with 10 additions and 1 deletions

View File

@ -39,6 +39,15 @@ jobs:
cargo --version
java --version
- name: Patch version from git tag
shell: powershell
run: |
$ver = ("${{ github.ref_name }}" -replace '^v','')
$conf = Get-Content src-tauri\tauri.conf.json -Raw
$conf = $conf -replace '"version":\s*"[^"]*"', "`"version`": `"$ver`""
[System.IO.File]::WriteAllText((Join-Path (Get-Location) "src-tauri\tauri.conf.json"), $conf)
Write-Host "Patched tauri.conf.json version to $ver"
- name: Install dependencies and build frontend
shell: powershell
run: |

View File

@ -1,6 +1,6 @@
{
"productName": "Wraith",
"version": "1.1.0",
"version": "1.1.5",
"identifier": "com.vigilcyber.wraith",
"build": {
"frontendDist": "../dist",