Fresh start - excluded large ROM JSON files
This commit is contained in:
29
scripts/install-mailspring.ps1
Normal file
29
scripts/install-mailspring.ps1
Normal file
@@ -0,0 +1,29 @@
|
||||
# PowerShell script to download and install Mailspring
|
||||
# Run as Administrator
|
||||
|
||||
$downloadUrl = "https://github.com/Foundry376/Mailspring/releases/download/1.17.3/MailspringSetup.exe"
|
||||
$installerPath = "$env:TEMP\MailspringSetup.exe"
|
||||
|
||||
Write-Host "[INFO] Downloading Mailspring..."
|
||||
Write-Host "[INFO] This may take a few minutes (approx 200MB)..."
|
||||
|
||||
try {
|
||||
# Download the installer
|
||||
Invoke-WebRequest -Uri $downloadUrl -OutFile $installerPath -UseBasicParsing
|
||||
Write-Host "[OK] Download complete: $installerPath"
|
||||
|
||||
# Run the installer silently
|
||||
Write-Host "[INFO] Installing Mailspring..."
|
||||
Start-Process -FilePath $installerPath -ArgumentList "/S" -Wait
|
||||
|
||||
Write-Host "[OK] Mailspring installed successfully!"
|
||||
Write-Host "[INFO] You can find Mailspring in your Start Menu"
|
||||
|
||||
# Cleanup
|
||||
Remove-Item $installerPath -Force
|
||||
Write-Host "[INFO] Cleanup complete"
|
||||
|
||||
} catch {
|
||||
Write-Host "[ERROR] Installation failed: $_"
|
||||
exit 1
|
||||
}
|
||||
Reference in New Issue
Block a user