fix install path resolution

This commit is contained in:
thePR0M3TH3AN
2025-06-19 18:56:14 -04:00
parent 6a576d2928
commit d9dccc9f46

View File

@@ -54,7 +54,8 @@ if (Get-Command pipx -ErrorAction SilentlyContinue) {
pipx install voxvera --force pipx install voxvera --force
} catch { } catch {
Write-Host 'pipx install failed, downloading binary' Write-Host 'pipx install failed, downloading binary'
$dest = "$HOME/.local/bin" $home = [Environment]::GetFolderPath('UserProfile')
$dest = Join-Path $home '.local\bin'
New-Item -ItemType Directory -Path $dest -Force | Out-Null New-Item -ItemType Directory -Path $dest -Force | Out-Null
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe' $url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
if (-not (Download-Binary $url "$dest/voxvera.exe")) { if (-not (Download-Binary $url "$dest/voxvera.exe")) {
@@ -63,7 +64,8 @@ if (Get-Command pipx -ErrorAction SilentlyContinue) {
} }
} }
} else { } else {
$dest = "$HOME/.local/bin" $home = [Environment]::GetFolderPath('UserProfile')
$dest = Join-Path $home '.local\bin'
New-Item -ItemType Directory -Path $dest -Force | Out-Null New-Item -ItemType Directory -Path $dest -Force | Out-Null
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe' $url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
if (-not (Download-Binary $url "$dest/voxvera.exe")) { if (-not (Download-Binary $url "$dest/voxvera.exe")) {