Skip to content

Commit

Permalink
Improved Handling of compiling of Xaml code into the winutil.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ruxunderscore committed Sep 8, 2024
1 parent 75c4772 commit de70e6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Compile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,15 @@ Get-ChildItem "$workingdir\config" | Where-Object {$psitem.extension -eq ".json"
$script_content.Add($(Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" ))
}

$xaml = (Get-Content "$workingdir\xaml\inputXML.xaml").replace("'","''")
$xaml = Get-Content "$workingdir\xaml\inputXML.xaml" -Raw

Update-Progress "Adding: Xaml " 90

$script_content.Add($(Write-output "`$inputXML = '$xaml'"))
$script_content.Add(@"
`$inputXML = @'
$xaml
'@
"@)

$script_content.Add($(Get-Content "$workingdir\scripts\main.ps1"))

Expand Down

0 comments on commit de70e6f

Please sign in to comment.