Update Get.ps1 to new release

This commit is contained in:
Raphire
2025-06-12 22:05:44 +02:00
parent a6a7232709
commit 1a170a2db1

View File

@@ -79,7 +79,7 @@ Write-Output "------------------------------------------------------------------
Write-Output "> Downloading Win11Debloat..." Write-Output "> Downloading Win11Debloat..."
# Download latest version of Win11Debloat from github as zip archive # Download latest version of Win11Debloat from github as zip archive
Invoke-WebRequest https://github.com/Raphire/Win11Debloat/zipball/2025.06.11 -OutFile "$env:TEMP/win11debloat-temp.zip" Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/zipball/2025.06.12 -OutFile "$env:TEMP/win11debloat.zip"
# Remove old script folder if it exists, except for CustomAppsList and SavedSettings files # Remove old script folder if it exists, except for CustomAppsList and SavedSettings files
if (Test-Path "$env:TEMP/Win11Debloat") { if (Test-Path "$env:TEMP/Win11Debloat") {
@@ -92,10 +92,10 @@ Write-Output ""
Write-Output "> Unpacking..." Write-Output "> Unpacking..."
# Unzip archive to Win11Debloat folder # Unzip archive to Win11Debloat folder
Expand-Archive "$env:TEMP/win11debloat-temp.zip" "$env:TEMP/Win11Debloat" Expand-Archive "$env:TEMP/win11debloat.zip" "$env:TEMP/Win11Debloat"
# Remove archive # Remove archive
Remove-Item "$env:TEMP/win11debloat-temp.zip" Remove-Item "$env:TEMP/win11debloat.zip"
# Move files # Move files
Get-ChildItem -Path "$env:TEMP/Win11Debloat/Raphire-Win11Debloat-*" -Recurse | Move-Item -Destination "$env:TEMP/Win11Debloat" Get-ChildItem -Path "$env:TEMP/Win11Debloat/Raphire-Win11Debloat-*" -Recurse | Move-Item -Destination "$env:TEMP/Win11Debloat"