mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-10 10:01:16 +10:00
yep
This commit is contained in:
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user