new commit version and change homepage
This commit is contained in:
1 file changed
+54
@@ -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
|
||||
|
||||
Reference in new issue
Block a user