From caeb89f5d0376cde673d80f8bbe21991bdfd5b89 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Wed, 21 Feb 2024 22:27:06 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 00c4ced0..a6e24d88 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -10911,17 +10911,19 @@ $inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -repla # Assuming inputApp.xaml is in the same directory as main.ps1 $appXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputApp.xaml" +$tweaksXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputTweaks.xaml" +$featuresXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputFeatures.xaml" # Load the XAML content from inputApp.xaml $appXamlContent = Get-Content -Path $appXamlPath -Raw +$tweaksXamlContent = Get-Content -Path $tweaksXamlPath -Raw +$featuresXamlContent = Get-Content -Path $featuresXamlPath -Raw # Replace the placeholder in $inputXML with the content of inputApp.xaml $inputXML = $inputXML -replace "{{InstallPanel_applications}}", $appXamlContent +$inputXML = $inputXML -replace "{{InstallPanel_tweaks}}", $tweaksXamlContent +$inputXML = $inputXML -replace "{{InstallPanel_features}}", $featuresXamlContent -$tabcolums=Get-TabXaml "tweaks" -$inputXML = $inputXML -replace "{{InstallPanel_tweaks}}", ($tabcolums) -$tabcolums=Get-TabXaml "feature" -$inputXML = $inputXML -replace "{{InstallPanel_features}}", ($tabcolums) if ((Get-WinUtilToggleStatus WPFToggleDarkMode) -eq $True) { $ctttheme = 'Matrix'