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
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:
parent
0cdc865483
commit
429f41d853
@ -39,6 +39,15 @@ jobs:
|
|||||||
cargo --version
|
cargo --version
|
||||||
java --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
|
- name: Install dependencies and build frontend
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"productName": "Wraith",
|
"productName": "Wraith",
|
||||||
"version": "1.1.0",
|
"version": "1.1.5",
|
||||||
"identifier": "com.vigilcyber.wraith",
|
"identifier": "com.vigilcyber.wraith",
|
||||||
"build": {
|
"build": {
|
||||||
"frontendDist": "../dist",
|
"frontendDist": "../dist",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user