Remove debug option (#4094)

* Remove debug option

* Remove debug option
This commit is contained in:
Gabi
2026-02-23 01:21:32 +02:00
committed by GitHub
parent 191fe95572
commit d078d67b1d
2 changed files with 4 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
param ( param (
[switch]$Debug,
[switch]$Run, [switch]$Run,
[string]$Arguments [string]$Arguments
) )
@@ -106,17 +105,10 @@ $xaml
$script_content.Add($(Get-Content "scripts\main.ps1")) $script_content.Add($(Get-Content "scripts\main.ps1"))
if ($Debug) {
Update-Progress "Writing debug files" 95
$appXamlContent | Out-File -FilePath "xaml\inputApp.xaml" -Encoding ascii
$tweaksXamlContent | Out-File -FilePath "xaml\inputTweaks.xaml" -Encoding ascii
$featuresXamlContent | Out-File -FilePath "xaml\inputFeatures.xaml" -Encoding ascii
} else {
Update-Progress "Removing temporary files" 99 Update-Progress "Removing temporary files" 99
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
}
Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii
Write-Progress -Activity "Compiling" -Completed Write-Progress -Activity "Compiling" -Completed

View File

@@ -7,16 +7,10 @@
#> #>
param ( param (
[switch]$Debug,
[string]$Config, [string]$Config,
[switch]$Run [switch]$Run
) )
# Set DebugPreference based on the -Debug switch
if ($Debug) {
$DebugPreference = "Continue"
}
if ($Config) { if ($Config) {
$PARAM_CONFIG = $Config $PARAM_CONFIG = $Config
} }