mirror of
https://github.com/Raphire/Win11Debloat.git
synced 2026-08-22 07:36:25 +00:00
Update download messages for development and stable versions of Win11Debloat
This commit is contained in:
+2
-2
@@ -121,13 +121,13 @@ $tempRootPath = $env:TEMP
|
|||||||
$tempWorkPath = Join-Path $tempRootPath 'Win11Debloat'
|
$tempWorkPath = Join-Path $tempRootPath 'Win11Debloat'
|
||||||
$tempArchivePath = Join-Path $tempRootPath 'win11debloat.zip'
|
$tempArchivePath = Join-Path $tempRootPath 'win11debloat.zip'
|
||||||
|
|
||||||
Write-Output "> Downloading Win11Debloat..."
|
|
||||||
|
|
||||||
# Download Win11Debloat from GitHub as a zip archive.
|
# Download Win11Debloat from GitHub as a zip archive.
|
||||||
try {
|
try {
|
||||||
if ($Dev) {
|
if ($Dev) {
|
||||||
|
Write-Output "> Downloading development version of Win11Debloat..."
|
||||||
$sourceUri = "https://github.com/Raphire/Win11Debloat/archive/refs/heads/master.zip"
|
$sourceUri = "https://github.com/Raphire/Win11Debloat/archive/refs/heads/master.zip"
|
||||||
} else {
|
} else {
|
||||||
|
Write-Output "> Downloading Win11Debloat..."
|
||||||
$sourceUri = (Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/releases/latest).zipball_url
|
$sourceUri = (Invoke-RestMethod https://api.github.com/repos/Raphire/Win11Debloat/releases/latest).zipball_url
|
||||||
}
|
}
|
||||||
Invoke-RestMethod $sourceUri -OutFile $tempArchivePath
|
Invoke-RestMethod $sourceUri -OutFile $tempArchivePath
|
||||||
|
|||||||
Reference in New Issue
Block a user