CI / Docker image (push) Successful in 12s
CI / Server (push) Successful in 25s
CI / CLI (push) Successful in 13s
Development image / Development image (push) Successful in 21s
CI / CLI (windows) (push) Successful in 57s
CI / CLI (linux-arm64, static) (push) Successful in 1m37s
Release / Prepare release (push) Successful in 2s
Release / Server (linux-x64) (push) Successful in 53s
Release / CLI (linux-arm64, static) (push) Successful in 1m32s
Release / Docker image (push) Successful in 2m48s
Release / Server (windows-x64) (push) Successful in 6m20s
Release / CLI (windows-x64) (push) Successful in 6m48s
Release / CLI (linux-x64) (push) Successful in 7m8s
Release / Publish release (push) Successful in 1s
Squash the tree into one commit, drop docs/architecture.html, reset the version line to 0.3.0, consolidate the changelog, enable Renovate automerge for non-major updates and add AGENTS.md.
39 lines
1.6 KiB
PowerShell
39 lines
1.6 KiB
PowerShell
$ErrorActionPreference = "Stop"
|
|
$Api = "https://git.fristy.net/api/v1/repos/fristy/frislit/releases/latest"
|
|
|
|
$arch = switch ($env:PROCESSOR_ARCHITECTURE) {
|
|
"AMD64" { "x64" }
|
|
"ARM64" { "arm64" }
|
|
default { Write-Error "unsupported architecture: $($env:PROCESSOR_ARCHITECTURE). frislit for Windows ships for x86-64 and ARM64."; exit 1 }
|
|
}
|
|
|
|
$release = Invoke-RestMethod -Uri $Api -UseBasicParsing
|
|
$base = "https://git.fristy.net/fristy/frislit/releases/download/$($release.tag_name)"
|
|
|
|
Write-Host ""
|
|
Write-Host " frislit installer (windows $arch)"
|
|
Write-Host ""
|
|
|
|
$msi = Join-Path $env:TEMP "frislit-$arch.msi"
|
|
Write-Host " Downloading frislit-$arch.msi ($($release.tag_name))"
|
|
Invoke-WebRequest -Uri "$base/frislit-$arch.msi" -OutFile $msi -UseBasicParsing
|
|
|
|
$setup = Start-Process msiexec.exe -ArgumentList "/i", "`"$msi`"", "/passive", "/norestart" -Wait -PassThru
|
|
Remove-Item $msi -ErrorAction SilentlyContinue
|
|
|
|
if ($setup.ExitCode -ne 0) {
|
|
Write-Host " The installer did not finish (exit code $($setup.ExitCode)), installing the plain binary instead"
|
|
$dir = Join-Path $env:LOCALAPPDATA "Programs\frislit"
|
|
New-Item -ItemType Directory -Force -Path $dir | Out-Null
|
|
Invoke-WebRequest -Uri "$base/frislit-windows-$arch.exe" -OutFile (Join-Path $dir "frislit.exe") -UseBasicParsing
|
|
$path = [Environment]::GetEnvironmentVariable("Path", "User")
|
|
if (($path -split ";") -notcontains $dir) {
|
|
[Environment]::SetEnvironmentVariable("Path", "$path;$dir", "User")
|
|
}
|
|
Write-Host " Installed $dir\frislit.exe"
|
|
}
|
|
|
|
Write-Host ""
|
|
Write-Host " Installed. Open a new terminal and run: frislit login"
|
|
Write-Host ""
|