From de70e6f8ddb271a1a792180f0c6b60080b047f5c Mon Sep 17 00:00:00 2001 From: ruxunderscore Date: Sun, 8 Sep 2024 23:59:55 +0000 Subject: [PATCH] Improved Handling of compiling of Xaml code into the winutil.ps1 --- Compile.ps1 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Compile.ps1 b/Compile.ps1 index afbe943d4..fb48c3326 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -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"))