mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-11-06 06:30:39 +00:00
Fix installer fallback when pipx fails
This commit is contained in:
1 parent
d7ca25c6a3
commit
5bdbc4b9dd
2 files changed
+25
-2
No files matched your search
+9
-1
@@ -24,7 +24,15 @@ if ($choco) {
|
||||
}
|
||||
|
||||
if (Get-Command pipx -ErrorAction SilentlyContinue) {
|
||||
pipx install voxvera --force
|
||||
try {
|
||||
pipx install voxvera --force
|
||||
} catch {
|
||||
Write-Host 'pipx install failed, downloading binary'
|
||||
$dest = "$HOME/.local/bin"
|
||||
New-Item -ItemType Directory -Path $dest -Force | Out-Null
|
||||
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
|
||||
Invoke-WebRequest -Uri $url -OutFile "$dest/voxvera.exe"
|
||||
}
|
||||
} else {
|
||||
$dest = "$HOME/.local/bin"
|
||||
New-Item -ItemType Directory -Path $dest -Force | Out-Null
|
||||
|
||||
Reference in new issue
Block a user