Update install.ps1
This commit is contained in:
21
install.ps1
Normal file
21
install.ps1
Normal file
@@ -0,0 +1,21 @@
|
||||
$installDir = "$env:LOCALAPPDATA\Blueberry"
|
||||
$zipUrl = "https://git.technopunk.space/tomi/Blueberry/releases/download/latest/Blueberry.zip"
|
||||
$exePath = "$installDir\Blueberry.exe"
|
||||
|
||||
if (Test-Path $installDir) { Remove-Item $installDir -Recurse -Force }
|
||||
New-Item -ItemType Directory -Path $installDir -Force | Out-Null
|
||||
|
||||
# 3. Download & Unzip
|
||||
Write-Host "Downloading Blueberry..."
|
||||
$zipFile = "$env:TEMP\Blueberry.zip"
|
||||
Invoke-WebRequest -Uri $zipUrl -OutFile $zipFile
|
||||
Expand-Archive -Path $zipFile -DestinationPath $installDir -Force
|
||||
Remove-Item $zipFile
|
||||
|
||||
$wsh = New-Object -ComObject WScript.Shell
|
||||
$shortcut = $wsh.CreateShortcut("$env:USERPROFILE\Desktop\Blueberry.lnk")
|
||||
$shortcut.TargetPath = $exePath
|
||||
$shortcut.Save()
|
||||
|
||||
# 5. Run it
|
||||
Start-Process $exePath
|
||||
Reference in New Issue
Block a user