From 38205f395857316679b6d132c0ee02205bc21ca3 Mon Sep 17 00:00:00 2001 From: GandC Date: Wed, 23 Sep 2026 20:41:51 +0300 Subject: [PATCH] new commit version and change homepage --- .gitea/workflows/desktop.yml | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/.gitea/workflows/desktop.yml b/.gitea/workflows/desktop.yml index 2f58ba4..89040c4 100644 --- a/.gitea/workflows/desktop.yml +++ b/.gitea/workflows/desktop.yml @@ -150,6 +150,24 @@ jobs: throw "CANARY_APP_URL was not configured" } + $PackagePath = "fluxer-src\fluxer_desktop\package.json" + + if (-not (Test-Path $PackagePath)) { + throw "package.json not found at $PackagePath" + } + + $Package = Get-Content $PackagePath -Raw | ConvertFrom-Json + $Package.homepage = "https://ds.gandc.ru" + + $Package | + ConvertTo-Json -Depth 100 | + Set-Content ` + -Path $PackagePath ` + -Encoding utf8 + + Write-Host "Desktop homepage configured:" + (Get-Content $PackagePath -Raw | ConvertFrom-Json).homepage + $WindowPath = "fluxer-src\fluxer_desktop\src\main\Window.ts" if (-not (Test-Path $WindowPath)) { @@ -670,6 +688,42 @@ jobs: print(result) PY + python3 <<'PY' + from pathlib import Path + import json + + path = Path( + "fluxer-src/fluxer_desktop/package.json" + ) + + if not path.is_file(): + raise SystemExit( + f"package.json not found: {path}" + ) + + package = json.loads( + path.read_text( + encoding="utf-8" + ) + ) + + package["homepage"] = "https://ds.gandc.ru" + + path.write_text( + json.dumps( + package, + ensure_ascii=False, + indent=2, + ) + "\n", + encoding="utf-8", + ) + + print( + "Desktop homepage configured:", + package["homepage"], + ) + PY + python3 <<'PY' from pathlib import Path import re