From 3d02b6515f9abef051dcecd086a3562455c8d9b5 Mon Sep 17 00:00:00 2001
From: Anbiona <76557547+Anbiona@users.noreply.github.com>
Date: Tue, 7 Nov 2023 17:43:08 -0600
Subject: [PATCH 1/4] Update SOFTWARE.ps1 to use NewGuid
Change to using "NewGuid" instead of "GetRandomFileName" as 'GetRandomFileName' has 2^56 possible combinations vs the 2^122 possible combinations with 'NewGuid'
---
src/playbook/Executables/SOFTWARE.ps1 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/playbook/Executables/SOFTWARE.ps1 b/src/playbook/Executables/SOFTWARE.ps1
index 5c924349a9..c9bb9c3e5f 100644
--- a/src/playbook/Executables/SOFTWARE.ps1
+++ b/src/playbook/Executables/SOFTWARE.ps1
@@ -9,7 +9,7 @@ param (
# ----------------------------------------------------------------------------------------------------------- #
# Create temporary directory
-$tempDir = Join-Path -Path $env:TEMP -ChildPath $([System.IO.Path]::GetRandomFileName())
+$tempDir = Join-Path -Path $env:TEMP -ChildPath $([System.Guid]::NewGuid())
New-Item $tempDir -ItemType Directory -Force | Out-Null
Push-Location $tempDir
@@ -107,4 +107,4 @@ Start-Process -FilePath "$tempDir\directx\dxsetup.exe" -WindowStyle Hidden -Argu
# Remove temporary directory
Pop-Location
-Remove-Item -Path $tempDir -Force -Recurse *>$null
\ No newline at end of file
+Remove-Item -Path $tempDir -Force -Recurse *>$null
From 5f32dd2c0f40fc0663cf5e1a02ee3387f0541206 Mon Sep 17 00:00:00 2001
From: Anbiona <76557547+Anbiona@users.noreply.github.com>
Date: Wed, 8 Nov 2023 00:12:02 -0600
Subject: [PATCH 2/4] Fix: playbook.conf "Learn more"
The learn more option leads to dead links. Corrected in this commit
---
src/playbook/playbook.conf | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/playbook/playbook.conf b/src/playbook/playbook.conf
index 720168e815..9b3f5a8b96 100644
--- a/src/playbook/playbook.conf
+++ b/src/playbook/playbook.conf
@@ -40,7 +40,7 @@
defender-disable
-
+
@@ -54,7 +54,7 @@
mitigations-disable
-
+
@@ -68,7 +68,7 @@
vbs-default
-
+
@@ -85,7 +85,7 @@
disable-power-saving
-
+
From 89000251d3b43cc4b7a6a6e3ef1dea8e668b6735 Mon Sep 17 00:00:00 2001
From: Xyueta
Date: Wed, 8 Nov 2023 22:55:05 +0100
Subject: [PATCH 3/4] fix: delete version specific files
---
src/playbook/Configuration/tweaks.yml | 2 +-
...fic-files.yml => delete-windows-specific-files.yml} | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
rename src/playbook/Configuration/tweaks/misc/{delete-version-specific-files.yml => delete-windows-specific-files.yml} (86%)
diff --git a/src/playbook/Configuration/tweaks.yml b/src/playbook/Configuration/tweaks.yml
index 78b3099b20..ea19704b92 100644
--- a/src/playbook/Configuration/tweaks.yml
+++ b/src/playbook/Configuration/tweaks.yml
@@ -336,8 +336,8 @@ tasks:
- tweaks\statuses\status-misc.yml
- tweaks\misc\config-time.yml
- tweaks\misc\disable-game-mode.yml
+ - tweaks\misc\delete-windows-specific-files.yml
- tweaks\misc\config-oem-information.yml
- tweaks\misc\rebuild-perf-counters.yml
- tweaks\misc\restore-default-sleep-timeout.yml
- tweaks\misc\create-shortcuts.yml
- - tweaks\misc\delete-version-specific-files.yml
diff --git a/src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml
similarity index 86%
rename from src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml
rename to src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml
index ec599547e1..78916819ce 100644
--- a/src/playbook/Configuration/tweaks/misc/delete-version-specific-files.yml
+++ b/src/playbook/Configuration/tweaks/misc/delete-windows-specific-files.yml
@@ -1,17 +1,17 @@
---
title: Delete Windows-version Specific Tweaks
-description: Deletes Windows 10 or Windows 11-only tweaks in the Atlas folder, depending on the Windows version
+description: Deletes Windows 10 or Windows 11-only tweaks in the Atlas folder, depending on the current version
privilege: TrustedInstaller
actions:
- # Delete Windows 11-only tweaks
+ # Windows 11-only
- !file: {path: '%windir%\AtlasDesktop\3. Configuration\Background Apps', builds: [ '!>=22000' ]}
- !file: {path: '%windir%\AtlasDesktop\3. Configuration\Power\Timer Resolution', builds: [ '!>=22000' ]}
- !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Compact View', builds: [ '!>=22000' ]}
- !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Gallery', builds: [ '!>=22000' ]}
+ - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Folders in This PC\Win11', builds: [ '!>=22000' ]}
- !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\Windows 11 Context Menu', builds: [ '!>=22000' ]}
- !file: {path: '%windir%\AtlasModules\Tools\TimerResolution.exe', builds: [ '!>=22000' ]}
- - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Folders in This PC\Win11', builds: [ '!>=22000' ]}
- # Delete Windows 10-only tweaks
- - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\Volume Flyout', builds: [ '>=22000' ], ignoreErrors: true}
+ # Windows 10-only
- !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\File Explorer Customization\Folders in This PC\Win10', builds: [ '>=22000' ]}
+ - !file: {path: '%windir%\AtlasDesktop\4. Optional Tweaks\Volume Flyout', builds: [ '>=22000' ], ignoreErrors: true}
From fe015fef3379351649b4d981f6aa8ffcaef464d7 Mon Sep 17 00:00:00 2001
From: Xyueta
Date: Wed, 8 Nov 2023 22:56:23 +0100
Subject: [PATCH 4/4] feat: rename idle toggle in context menu
---
.../Add Idle toggle in context menu.reg | 0
.../Remove Idle toggle in context menu (default).reg | 0
2 files changed, 0 insertions(+), 0 deletions(-)
rename src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/{CPU Idle in context menu => Context Menu}/Add Idle toggle in context menu.reg (100%)
rename src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/{CPU Idle in context menu => Context Menu}/Remove Idle toggle in context menu (default).reg (100%)
diff --git a/src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/CPU Idle in context menu/Add Idle toggle in context menu.reg b/src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/Context Menu/Add Idle toggle in context menu.reg
similarity index 100%
rename from src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/CPU Idle in context menu/Add Idle toggle in context menu.reg
rename to src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/Context Menu/Add Idle toggle in context menu.reg
diff --git a/src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/CPU Idle in context menu/Remove Idle toggle in context menu (default).reg b/src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/Context Menu/Remove Idle toggle in context menu (default).reg
similarity index 100%
rename from src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/CPU Idle in context menu/Remove Idle toggle in context menu (default).reg
rename to src/playbook/Executables/AtlasDesktop/3. Configuration/Power/CPU Idle/Context Menu/Remove Idle toggle in context menu (default).reg