mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-29 01:11:30 -06:00
Compare commits
8 Commits
832f08c18b
...
e21d4fa9a4
Author | SHA1 | Date | |
---|---|---|---|
|
e21d4fa9a4 | ||
|
b8397ff49f | ||
|
23af79852a | ||
|
7bfcd7cb25 | ||
|
4de1ac39ef | ||
|
4ac5b79fc8 | ||
|
420f37f205 | ||
|
c6c3f0cd03 |
22
Compile.ps1
22
Compile.ps1
@ -24,15 +24,14 @@ Get-ChildItem .\functions -Recurse -File | ForEach-Object {
|
|||||||
Get-Content $psitem.FullName | Out-File ./$scriptname -Append -Encoding ascii
|
Get-Content $psitem.FullName | Out-File ./$scriptname -Append -Encoding ascii
|
||||||
}
|
}
|
||||||
|
|
||||||
$xaml = (Get-Content .\xaml\inputXML.xaml).replace("'","''")
|
|
||||||
Write-output "`$inputXML = '$xaml'" | Out-File ./$scriptname -Append -Encoding ascii
|
|
||||||
|
|
||||||
Get-ChildItem .\config | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
Get-ChildItem .\config | Where-Object {$psitem.extension -eq ".json"} | ForEach-Object {
|
||||||
$json = (Get-Content $psitem.FullName).replace("'","''")
|
$json = (Get-Content $psitem.FullName).replace("'","''")
|
||||||
$sync.configs.$($psitem.BaseName) = $json | convertfrom-json
|
$sync.configs.$($psitem.BaseName) = $json | convertfrom-json
|
||||||
Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" | Out-File ./$scriptname -Append -Encoding ascii
|
Write-output "`$sync.configs.$($psitem.BaseName) = '$json' `| convertfrom-json" | Out-File ./$scriptname -Append -Encoding ascii
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$xaml = (Get-Content .\xaml\inputXML.xaml).replace("'","''")
|
||||||
|
|
||||||
# Dot-source the Get-TabXaml function
|
# Dot-source the Get-TabXaml function
|
||||||
. .\functions\private\Get-TabXaml.ps1
|
. .\functions\private\Get-TabXaml.ps1
|
||||||
|
|
||||||
@ -44,4 +43,21 @@ $tabColumns | Out-File -FilePath ".\xaml\inputTweaks.xaml" -Encoding ascii
|
|||||||
$tabColumns = Get-TabXaml "feature"
|
$tabColumns = Get-TabXaml "feature"
|
||||||
$tabColumns | Out-File -FilePath ".\xaml\inputFeatures.xaml" -Encoding ascii
|
$tabColumns | Out-File -FilePath ".\xaml\inputFeatures.xaml" -Encoding ascii
|
||||||
|
|
||||||
|
# Assuming inputApp.xaml is in the same directory as main.ps1
|
||||||
|
$appXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputApp.xaml"
|
||||||
|
$tweaksXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputTweaks.xaml"
|
||||||
|
$featuresXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputFeatures.xaml"
|
||||||
|
|
||||||
|
# Load the XAML content from inputApp.xaml
|
||||||
|
$appXamlContent = Get-Content -Path $appXamlPath -Raw
|
||||||
|
$tweaksXamlContent = Get-Content -Path $tweaksXamlPath -Raw
|
||||||
|
$featuresXamlContent = Get-Content -Path $featuresXamlPath -Raw
|
||||||
|
|
||||||
|
# Replace the placeholder in $inputXML with the content of inputApp.xaml
|
||||||
|
$xaml = $xaml -replace "{{InstallPanel_applications}}", $appXamlContent
|
||||||
|
$xaml = $xaml -replace "{{InstallPanel_tweaks}}", $tweaksXamlContent
|
||||||
|
$xaml = $xaml -replace "{{InstallPanel_features}}", $featuresXamlContent
|
||||||
|
|
||||||
|
Write-output "`$inputXML = '$xaml'" | Out-File ./$scriptname -Append -Encoding ascii
|
||||||
|
|
||||||
Get-Content .\scripts\main.ps1 | Out-File ./$scriptname -Append -Encoding ascii
|
Get-Content .\scripts\main.ps1 | Out-File ./$scriptname -Append -Encoding ascii
|
@ -1108,7 +1108,7 @@
|
|||||||
"choco": "na",
|
"choco": "na",
|
||||||
"content": "Neofetch",
|
"content": "Neofetch",
|
||||||
"description": "Neofetch is a command-line utility for displaying system information in a visually appealing way.",
|
"description": "Neofetch is a command-line utility for displaying system information in a visually appealing way.",
|
||||||
"link": "https://github.com/dylanaraps/neofetch",
|
"link": "https://github.com/nepnep39/neofetch-win",
|
||||||
"winget": "nepnep.neofetch-win"
|
"winget": "nepnep.neofetch-win"
|
||||||
},
|
},
|
||||||
"WPFInstallneovim": {
|
"WPFInstallneovim": {
|
||||||
|
@ -11,6 +11,7 @@ function Invoke-WPFRunAdobeCCCleanerTool {
|
|||||||
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
Write-Host "The Adobe Creative Cloud Cleaner tool is hosted at"
|
||||||
Write-Host "$url"
|
Write-Host "$url"
|
||||||
|
|
||||||
|
try {
|
||||||
# Don't show the progress because it will slow down the download speed
|
# Don't show the progress because it will slow down the download speed
|
||||||
$ProgressPreference='SilentlyContinue'
|
$ProgressPreference='SilentlyContinue'
|
||||||
|
|
||||||
@ -20,9 +21,12 @@ function Invoke-WPFRunAdobeCCCleanerTool {
|
|||||||
$ProgressPreference='Continue'
|
$ProgressPreference='Continue'
|
||||||
|
|
||||||
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
Start-Process -FilePath "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Wait -ErrorAction SilentlyContinue -Verbose
|
||||||
|
} catch {
|
||||||
|
Write-Error $_.Exception.Message
|
||||||
|
} finally {
|
||||||
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
if (Test-Path -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe") {
|
||||||
Write-Host "Cleaning up..."
|
Write-Host "Cleaning up..."
|
||||||
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
Remove-Item -Path "$env:TEMP\AdobeCreativeCloudCleanerTool.exe" -Verbose
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -52,22 +52,6 @@ $sync.runspace.Open()
|
|||||||
|
|
||||||
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
|
$inputXML = $inputXML -replace 'mc:Ignorable="d"', '' -replace "x:N", 'N' -replace '^<Win.*', '<Window'
|
||||||
|
|
||||||
# Assuming inputApp.xaml is in the same directory as main.ps1
|
|
||||||
$appXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputApp.xaml"
|
|
||||||
$tweaksXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputTweaks.xaml"
|
|
||||||
$featuresXamlPath = Join-Path -Path $PSScriptRoot -ChildPath "xaml/inputFeatures.xaml"
|
|
||||||
|
|
||||||
# Load the XAML content from inputApp.xaml
|
|
||||||
$appXamlContent = Get-Content -Path $appXamlPath -Raw
|
|
||||||
$tweaksXamlContent = Get-Content -Path $tweaksXamlPath -Raw
|
|
||||||
$featuresXamlContent = Get-Content -Path $featuresXamlPath -Raw
|
|
||||||
|
|
||||||
# Replace the placeholder in $inputXML with the content of inputApp.xaml
|
|
||||||
$inputXML = $inputXML -replace "{{InstallPanel_applications}}", $appXamlContent
|
|
||||||
$inputXML = $inputXML -replace "{{InstallPanel_tweaks}}", $tweaksXamlContent
|
|
||||||
$inputXML = $inputXML -replace "{{InstallPanel_features}}", $featuresXamlContent
|
|
||||||
|
|
||||||
|
|
||||||
if ((Get-WinUtilToggleStatus WPFToggleDarkMode) -eq $True) {
|
if ((Get-WinUtilToggleStatus WPFToggleDarkMode) -eq $True) {
|
||||||
$ctttheme = 'Matrix'
|
$ctttheme = 'Matrix'
|
||||||
}
|
}
|
||||||
|
2952
winutil.ps1
2952
winutil.ps1
File diff suppressed because it is too large
Load Diff
@ -754,7 +754,7 @@
|
|||||||
<CheckBox Name="WPFInstallnanazip" Content="NanaZip" ToolTip="NanaZip is a fast and efficient file compression and decompression tool." Margin="0,0,2,0"/><TextBlock Name="WPFInstallnanazipLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://github.com/M2Team/NanaZip" />
|
<CheckBox Name="WPFInstallnanazip" Content="NanaZip" ToolTip="NanaZip is a fast and efficient file compression and decompression tool." Margin="0,0,2,0"/><TextBlock Name="WPFInstallnanazipLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://github.com/M2Team/NanaZip" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<CheckBox Name="WPFInstallneofetchwin" Content="Neofetch" ToolTip="Neofetch is a command-line utility for displaying system information in a visually appealing way." Margin="0,0,2,0"/><TextBlock Name="WPFInstallneofetchwinLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://github.com/dylanaraps/neofetch" />
|
<CheckBox Name="WPFInstallneofetchwin" Content="Neofetch" ToolTip="Neofetch is a command-line utility for displaying system information in a visually appealing way." Margin="0,0,2,0"/><TextBlock Name="WPFInstallneofetchwinLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://github.com/nepnep39/neofetch-win" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel Orientation="Horizontal">
|
<StackPanel Orientation="Horizontal">
|
||||||
<CheckBox Name="WPFInstallnextclouddesktop" Content="Nextcloud Desktop" ToolTip="Nextcloud Desktop is the official desktop client for the Nextcloud file synchronization and sharing platform." Margin="0,0,2,0"/><TextBlock Name="WPFInstallnextclouddesktopLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://nextcloud.com/install/#install-clients" />
|
<CheckBox Name="WPFInstallnextclouddesktop" Content="Nextcloud Desktop" ToolTip="Nextcloud Desktop is the official desktop client for the Nextcloud file synchronization and sharing platform." Margin="0,0,2,0"/><TextBlock Name="WPFInstallnextclouddesktopLink" Style="{StaticResource HoverTextBlockStyle}" Text="(?)" ToolTip="https://nextcloud.com/install/#install-clients" />
|
||||||
|
Loading…
Reference in New Issue
Block a user