From 7af6de31cde8adb66d18ee3b540fd167492903e6 Mon Sep 17 00:00:00 2001 From: XPower7125 <64551044+XPower7125@users.noreply.github.com> Date: Wed, 14 Feb 2024 20:39:48 +0100 Subject: [PATCH] Delete Extras.ps1 --- Extras.ps1 | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Extras.ps1 diff --git a/Extras.ps1 b/Extras.ps1 deleted file mode 100644 index ac762fa..0000000 --- a/Extras.ps1 +++ /dev/null @@ -1,22 +0,0 @@ -Write-Output "Cleaning up temp for Extras..." -Remove-Item -Recurse -Force "$env:localappdata\Temp\N11-extras\" -erroraction silentlycontinue -Remove-Item -Recurse -Force "C:\Users\Public\Desktop\extras-main" -erroraction silentlycontinue -Remove-Item -Recurse -Force "C:\Users\Public\Desktop\extras" -erroraction silentlycontinue - -New-Item -ItemType Directory -Path $env:localappdata\Temp\N11-extras\ -ErrorAction SilentlyContinue - -Write-Output "Downloading Extras..." -Invoke-RestMethod https://codeload.github.com/nano11-dev/extras/zip/refs/heads/main -OutFile "$env:localappdata\Temp\N11\N11-main.zip" - -Write-Output "Downloading 7-zip CLI" -Invoke-RestMethod https://raw.githubusercontent.com/BunnyRabbit12/N11-post-setup/BIN/7zxa.dll -OutFile "$env:localappdata\Temp\N11\7zxa.dll" -Invoke-RestMethod https://github.com/BunnyRabbit12/N11-post-setup/raw/BIN/7za.exe -OutFile "$env:localappdata\Temp\N11\7za.exe" - -$zipFilePath = Join-Path "$env:localappdata\Temp\N11\" "N11-main.zip" -$extractorPath = Join-Path $env:localappdata\Temp\N11\ "7za.exe" - -Write-Output "Extracting Extras..." -Start-Process -FilePath $extractorPath -ArgumentList "x", $zipFilePath, "-y", "-oC:\Users\Public\Desktop\" -Wait -WindowStyle Hidden -Rename-Item "C:\Users\Public\Desktop\extras-mainn" "C:\Users\Public\Desktop\extras" - -exit