File tree Expand file tree Collapse file tree 2 files changed +4
-18
lines changed
Expand file tree Collapse file tree 2 files changed +4
-18
lines changed Original file line number Diff line number Diff line change 11param (
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
121113Set-Content - Path " $scriptname " - Value ($script_content -join " `r`n " ) - Encoding ascii
122114Write-Progress - Activity " Compiling" - Completed
Original file line number Diff line number Diff line change 77#>
88
99param (
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-
2014if ($Config ) {
2115 $PARAM_CONFIG = $Config
2216}
You can’t perform that action at this time.
0 commit comments