fix: patch version with PowerShell instead of python3 on Windows runner
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,11 @@ jobs:
|
||||
|
||||
- name: Patch version
|
||||
shell: powershell
|
||||
run: python3 -c "import json; d=json.load(open('src-tauri/tauri.conf.json')); d['version']='${{ needs.prepare.outputs.version }}'; open('src-tauri/tauri.conf.json','w').write(json.dumps(d,indent=2))"
|
||||
run: |
|
||||
$ver = '${{ needs.prepare.outputs.version }}'
|
||||
$d = Get-Content 'src-tauri/tauri.conf.json' -Raw | ConvertFrom-Json
|
||||
$d.version = $ver
|
||||
$d | ConvertTo-Json -Depth 100 | Set-Content 'src-tauri/tauri.conf.json' -Encoding UTF8
|
||||
|
||||
- name: Install frontend deps
|
||||
shell: powershell
|
||||
|
||||
Reference in New Issue
Block a user