new commit version and change homepage
Build Fluxer Desktop / Linux x64 (push) Successful in 15m34s
Build Fluxer Desktop / Windows x64 (push) Canceled after 18m1s

This commit is contained in:
gandc committed 2026-09-23 20:41:51 +03:00
1 parent a755ee8691
commit 38205f3958
1 file changed
+54
+54
View File
@@ -150,6 +150,24 @@ jobs:
throw "CANARY_APP_URL was not configured" 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" $WindowPath = "fluxer-src\fluxer_desktop\src\main\Window.ts"
if (-not (Test-Path $WindowPath)) { if (-not (Test-Path $WindowPath)) {
@@ -670,6 +688,42 @@ jobs:
print(result) print(result)
PY 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' python3 <<'PY'
from pathlib import Path from pathlib import Path
import re import re