Skip to content

Commit d078d67

Browse files
authored
Remove debug option (#4094)
* Remove debug option * Remove debug option
1 parent 191fe95 commit d078d67

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

Compile.ps1

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
param (
2-
[switch]$Debug,
32
[switch]$Run,
43
[string]$Arguments
54
)
@@ -106,17 +105,10 @@ $xaml
106105

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

109-
if ($Debug) {
110-
Update-Progress "Writing debug files" 95
111-
$appXamlContent | Out-File -FilePath "xaml\inputApp.xaml" -Encoding ascii
112-
$tweaksXamlContent | Out-File -FilePath "xaml\inputTweaks.xaml" -Encoding ascii
113-
$featuresXamlContent | Out-File -FilePath "xaml\inputFeatures.xaml" -Encoding ascii
114-
} else {
115-
Update-Progress "Removing temporary files" 99
116-
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
117-
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
118-
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
119-
}
108+
Update-Progress "Removing temporary files" 99
109+
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
110+
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
111+
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
120112

121113
Set-Content -Path "$scriptname" -Value ($script_content -join "`r`n") -Encoding ascii
122114
Write-Progress -Activity "Compiling" -Completed

scripts/start.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,10 @@
77
#>
88

99
param (
10-
[switch]$Debug,
1110
[string]$Config,
1211
[switch]$Run
1312
)
1413

15-
# Set DebugPreference based on the -Debug switch
16-
if ($Debug) {
17-
$DebugPreference = "Continue"
18-
}
19-
2014
if ($Config) {
2115
$PARAM_CONFIG = $Config
2216
}

0 commit comments

Comments
 (0)