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"
|
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
|
||||||
|
|||||||
Reference in new issue
Block a user