mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 06:35:51 -06:00
a2b12ae4b0
* Add Version to App Display * Keep Windows Security (#1341) Adds a switch to Remove-ProvisionedPackages to determine whether we should remove Windows Security (GUI component, Microsoft.SecHealthUI). This commit fixes issue #1339 * Added scrollbar to all tabs (#1344) * Add scrollbar to Tweaks * Added scrollbar to all tabs * Compile Winutil --------- Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Co-authored-by: Munkk <152475628+munkk01@users.noreply.github.com> Co-authored-by: ChrisTitusTech <ChrisTitusTech@users.noreply.github.com>
38 lines
1.7 KiB
PowerShell
38 lines
1.7 KiB
PowerShell
$OFS = "`r`n"
|
|
$scriptname = "winutil.ps1"
|
|
|
|
|
|
if (Test-Path -Path "$($scriptname)")
|
|
{
|
|
Remove-Item -Force "$($scriptname)"
|
|
}
|
|
|
|
Write-output '
|
|
################################################################################################################
|
|
### ###
|
|
### WARNING: This file is automatically generated DO NOT modify this file directly as it will be overwritten ###
|
|
### ###
|
|
################################################################################################################
|
|
' | Out-File ./$scriptname -Append -Encoding ascii
|
|
|
|
(Get-Content .\scripts\start.ps1).replace('#{replaceme}',"$(get-date -format yy.MM.dd)") | Out-File ./$scriptname -Append -Encoding ascii
|
|
|
|
Get-ChildItem .\functions -Recurse -File | ForEach-Object {
|
|
Get-Content $psitem.FullName | Out-File ./$scriptname -Append -Encoding ascii
|
|
}
|
|
|
|
Get-ChildItem .\xaml | ForEach-Object {
|
|
$xaml = (Get-Content $psitem.FullName).replace("'","''")
|
|
$newXaml = $xaml -replace 'CTTVersion', (Get-Date -Format 'yy.MM.dd')
|
|
|
|
Write-output "`$$($psitem.BaseName) = '$newXaml'" | Out-File ./$scriptname -Append -Encoding ascii
|
|
}
|
|
|
|
Get-ChildItem .\config | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
|
$json = (Get-Content $psitem.FullName).replace("'","''")
|
|
|
|
Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" | Out-File ./$scriptname -Append -Encoding ascii
|
|
}
|
|
|
|
Get-Content .\scripts\main.ps1 | Out-File ./$scriptname -Append -Encoding ascii
|