Skip to content

Commit 9155fb8

Browse files
authored
Merge branch 'ChrisTitusTech:main' into Disable-Defender
2 parents 14cd07e + 60d31a1 commit 9155fb8

27 files changed

+976
-655
lines changed

.github/workflows/pre-release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,25 @@ jobs:
1616
- name: Checkout Repository
1717
uses: actions/checkout@v6
1818

19+
- name: Generate Dev Docs and Update JSON Links
20+
shell: pwsh
21+
run: |
22+
Set-Location tools
23+
./devdocs-generator.ps1
24+
25+
- name: Commit Updated JSON Links
26+
shell: pwsh
27+
run: |
28+
git config user.name "github-actions[bot]"
29+
git config user.email "github-actions[bot]@users.noreply.github.com"
30+
git add config/tweaks.json config/feature.json
31+
$changes = git diff --cached --quiet; if ($LASTEXITCODE -ne 0) {
32+
git commit -m "Update documentation links in JSON configs"
33+
git push
34+
} else {
35+
Write-Host "No JSON link changes to commit"
36+
}
37+
1938
- name: Compile project
2039
shell: pwsh
2140
run: |

config/applications.json

Lines changed: 495 additions & 252 deletions
Large diffs are not rendered by default.

config/appnavigation.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,13 @@
7272
"Type": "Button",
7373
"Order": "5",
7474
"Description": "Show the selected applications"
75+
},
76+
"WPFToggleFOSSHighlight": {
77+
"Content": "Highlight FOSS",
78+
"Category": "__Selection",
79+
"Type": "Toggle",
80+
"Checked": true,
81+
"Order": "6",
82+
"Description": "Toggle the green highlight for FOSS applications"
7583
}
76-
}
84+
}

config/feature.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -181,15 +181,6 @@
181181
"ButtonWidth": "300",
182182
"link": "https://winutil.christitus.com/dev/features/fixes/winget"
183183
},
184-
"WPFRunAdobeCCCleanerTool": {
185-
"Content": "Remove Adobe Creative Cloud",
186-
"category": "Fixes",
187-
"panel": "1",
188-
"Order": "a045_",
189-
"Type": "Button",
190-
"ButtonWidth": "300",
191-
"link": "https://winutil.christitus.com/dev/features/fixes/runadobecccleanertool"
192-
},
193184
"WPFPanelControl": {
194185
"Content": "Control Panel",
195186
"category": "Legacy Windows Panels",

config/tweaks.json

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@
6565
"panel": "1",
6666
"InvokeScript": [
6767
"
68-
# Sometimes if you dont stop Widgets Process for removal to work
68+
# Sometimes if you dont stop the Widgets process the removal may fail
69+
6970
Stop-Process -Name Widgets
7071
Get-AppxPackage Microsoft.WidgetsPlatformRuntime -AllUsers | Remove-AppxPackage -AllUsers
72+
Get-AppxPackage MicrosoftWindows.Client.WebExperience -AllUsers | Remove-AppxPackage -AllUsers
7173

7274
Invoke-WinUtilExplorerUpdate -action \"restart\"
7375
Write-Host \"Removed widgets\"
@@ -76,7 +78,10 @@
7678
"UndoScript": [
7779
"
7880
Write-Host \"Restoring widgets AppxPackages\"
79-
Add-AppxPackage -DisableDevelopmentMode -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\"
81+
82+
Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\Microsoft.WidgetsPlatformRuntime*\\AppxManifest.xml\" -DisableDevelopmentMode
83+
Add-AppxPackage -Register \"C:\\Program Files\\WindowsApps\\MicrosoftWindows.Client.WebExperience*\\AppxManifest.xml\" -DisableDevelopmentMode
84+
8085
Invoke-WinUtilExplorerUpdate -action \"restart\"
8186
"
8287
],
@@ -1196,10 +1201,10 @@
11961201
"OriginalValue": "<RemoveEntry>"
11971202
},
11981203
{
1199-
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge",
1200-
"Name": "ofefcgjbeghpigppfmkologfjadafddi",
1204+
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Edge\\ExtensionInstallBlocklist",
1205+
"Name": "1",
12011206
"Type": "String",
1202-
"Value": "1",
1207+
"Value": "ofefcgjbeghpigppfmkologfjadafddi",
12031208
"OriginalValue": "<RemoveEntry>"
12041209
},
12051210
{
@@ -2017,9 +2022,9 @@
20172022
"InvokeScript": [
20182023
"
20192024
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
2020-
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
2025+
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
20212026

2022-
Copy-Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
2027+
Move-Item $hosts \"$hosts.bak\"
20232028
Invoke-WebRequest $hostsUrl -OutFile $hosts
20242029
ipconfig /flushdns
20252030

@@ -2028,10 +2033,10 @@
20282033
],
20292034
"UndoScript": [
20302035
"
2031-
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
2032-
$backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
2036+
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
20332037

20342038
Remove-Item $hosts
2039+
Move-Item \"$hosts.bak\" $hosts
20352040
ipconfig /flushdns
20362041

20372042
Write-Host \"Removed Adobe url block list from host file\"

docs/i18n/en.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
copyright: "&copy; <script>document.write(new Date().getFullYear())</script> <a href='https://christitus.com'> Chris Titus Tech</a>. All rights reserved."
1+
copyright: "&copy; <script>document.write(new Date().getFullYear())</script>&nbsp; <a href='https://christitus.com'>Chris Titus Tech</a>. All rights reserved."
22

33
backToTop: "Scroll to top"
44
changeLanguage: "Change language"

functions/private/Get-WinUtilCheckBoxes.ps1

Lines changed: 0 additions & 92 deletions
This file was deleted.

functions/private/Initialize-InstallAppEntry.ps1

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,19 @@ function Initialize-InstallAppEntry {
4141
})
4242

4343
$checkBox = New-Object Windows.Controls.CheckBox
44-
$checkBox.Name = $appKey
44+
# Sanitize the name for WPF
45+
$checkBox.Name = $appKey -replace '-', '_'
46+
# Store the original appKey in Tag
47+
$checkBox.Tag = $appKey
4548
$checkbox.Style = $sync.Form.Resources.AppEntryCheckboxStyle
4649
$checkbox.Add_Checked({
47-
Invoke-WPFSelectedAppsUpdate -type "Add" -checkbox $this
50+
Invoke-WPFSelectedCheckboxesUpdate -type "Add" -checkboxName $this.Parent.Tag
4851
$borderElement = $this.Parent
4952
$borderElement.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallSelectedColor")
5053
})
5154

5255
$checkbox.Add_Unchecked({
53-
Invoke-WPFSelectedAppsUpdate -type "Remove" -checkbox $this
56+
Invoke-WPFSelectedCheckboxesUpdate -type "Remove" -checkboxName $this.Parent.Tag
5457
$borderElement = $this.Parent
5558
$borderElement.SetResourceReference([Windows.Controls.Control]::BackgroundProperty, "AppInstallUnselectedColor")
5659
})
@@ -60,6 +63,12 @@ function Initialize-InstallAppEntry {
6063
$appName.Style = $sync.Form.Resources.AppEntryNameStyle
6164
$appName.Text = $Apps.$appKey.content
6265

66+
# Change color to Green if FOSS
67+
if ($Apps.$appKey.foss -eq $true) {
68+
$appName.SetResourceReference([Windows.Controls.Control]::ForegroundProperty, "FOSSColor")
69+
$appName.FontWeight = "Bold"
70+
}
71+
6372
# Add the name to the Checkbox
6473
$checkBox.Content = $appName
6574

functions/private/Invoke-WinUtilCurrentSystem.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Function Invoke-WinUtilCurrentSystem {
66
Checks to see what tweaks have already been applied and what programs are installed, and checks the according boxes
77
88
.EXAMPLE
9-
Get-WinUtilCheckBoxes "WPFInstall"
9+
InvokeWinUtilCurrentSystem -Checkbox "winget"
1010
1111
#>
1212

functions/private/Invoke-WinutilThemeChange.ps1

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,18 @@ function Invoke-WinutilThemeChange {
174174
}
175175
}
176176

177+
# Set FOSS Highlight Color
178+
$fossEnabled = $true
179+
if ($sync.WPFToggleFOSSHighlight) {
180+
$fossEnabled = $sync.WPFToggleFOSSHighlight.IsChecked
181+
}
182+
183+
if ($fossEnabled) {
184+
$sync.Form.Resources["FOSSColor"] = [Windows.Media.SolidColorBrush]::new([Windows.Media.Color]::FromRgb(76, 175, 80)) # #4CAF50
185+
} else {
186+
$sync.Form.Resources["FOSSColor"] = $sync.Form.Resources["MainForegroundColor"]
187+
}
188+
177189
# Update the theme selector button with the appropriate icon
178190
$ThemeButton = $sync.Form.FindName("ThemeButton")
179191
$ThemeButton.Content = [string]$themeButtonIcon

0 commit comments

Comments
 (0)