fix: patch version with PowerShell instead of python3 on Windows runner
Build Lotus Chat Desktop / prepare (push) Successful in 3s
Build Lotus Chat Desktop / build-linux (push) Failing after 27m38s
Build Lotus Chat Desktop / build-windows (push) Failing after 27m45s
Build Lotus Chat Desktop / update-manifest (push) Has been skipped

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-10 18:56:23 -04:00
parent cee7809155
commit 72a03dac33
+5 -1
View File
@@ -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