mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
Merge pull request #48 from PR0M3TH3AN/codex/replace-home-with-getfolderpath-for-user-home
Update PowerShell install path handling
This commit is contained in:
commit
ca61bb1629
1 file changed
+4
-2
+4
-2
@@ -54,7 +54,8 @@ if (Get-Command pipx -ErrorAction SilentlyContinue) {
|
||||
pipx install voxvera --force
|
||||
} catch {
|
||||
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
|
||||
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
|
||||
if (-not (Download-Binary $url "$dest/voxvera.exe")) {
|
||||
@@ -63,7 +64,8 @@ if (Get-Command pipx -ErrorAction SilentlyContinue) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$dest = "$HOME/.local/bin"
|
||||
$home = [Environment]::GetFolderPath('UserProfile')
|
||||
$dest = Join-Path $home '.local\bin'
|
||||
New-Item -ItemType Directory -Path $dest -Force | Out-Null
|
||||
$url = 'https://github.com/PR0M3TH3AN/VoxVera/releases/latest/download/voxvera.exe'
|
||||
if (-not (Download-Binary $url "$dest/voxvera.exe")) {
|
||||
|
||||
Reference in new issue
Block a user