mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-05 22:28:31 +00:00
Remove debug option (#4094)
* Remove debug option * Remove debug option
This commit is contained in:
16
Compile.ps1
16
Compile.ps1
@@ -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 "Removing temporary files" 99
|
||||||
Update-Progress "Writing debug files" 95
|
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
|
||||||
$appXamlContent | Out-File -FilePath "xaml\inputApp.xaml" -Encoding ascii
|
Remove-Item "xaml\inputTweaks.xaml" -ErrorAction SilentlyContinue
|
||||||
$tweaksXamlContent | Out-File -FilePath "xaml\inputTweaks.xaml" -Encoding ascii
|
Remove-Item "xaml\inputFeatures.xaml" -ErrorAction SilentlyContinue
|
||||||
$featuresXamlContent | Out-File -FilePath "xaml\inputFeatures.xaml" -Encoding ascii
|
|
||||||
} else {
|
|
||||||
Update-Progress "Removing temporary files" 99
|
|
||||||
Remove-Item "xaml\inputApp.xaml" -ErrorAction SilentlyContinue
|
|
||||||
Remove-Item "xaml\inputTweaks.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
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user