From 58d2f3d37072695324945599a665c9c5bbb5205b Mon Sep 17 00:00:00 2001 From: Rux Date: Sun, 8 Sep 2024 17:20:42 -0700 Subject: [PATCH] Update Compile.ps1 - Implemented here-strings to improve syntax highlighting and readability after Compile.ps1 is run. --- 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"))