This commit is contained in:
GabiNun2
2026-06-21 18:01:50 +03:00
parent e8c1401cce
commit 1f3e4f7dc4
2 changed files with 72 additions and 59 deletions
-11
View File
@@ -23,17 +23,6 @@ Get-ChildItem config | ForEach-Object {
$obj = [pscustomobject]$fixed
}
if ($_.Name -eq "appx.json") {
$fixed = [ordered]@{}
foreach ($p in $obj.PSObject.Properties) {
$keyName = "WPFAppx$($p.Name -replace '\.', '_')"
$val = $p.Value
$val | Add-Member -MemberType NoteProperty -Name "PackageId" -Value $p.Name -Force
$fixed[$keyName] = $val
}
$obj = [pscustomobject]$fixed
}
$json = $obj | ConvertTo-Json -Depth 10
$sync.configs[$_.BaseName] = $obj