fix: use full package title in up-to-date message in windows installer

This commit is contained in:
CJ van den Berg 2025-06-24 21:45:07 +02:00
parent 1853955b4e
commit 742c9f997e
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 6 additions and 4 deletions

View file

@ -7,7 +7,6 @@ $updater = "install-nightly"
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
$version = $release.tag_name
$title_updater = "$title updater"
$title = "$title $version"
$install_dir = "$env:APPDATA\flow\bin"
$existing_flow = Join-Path -Path $install_dir -ChildPath "flow.exe"
@ -17,12 +16,14 @@ if (Test-Path $existing_flow) {
if ($existing_version_lines -and $matches) {
$existing_version = $matches[1]
if ($version -eq $existing_version) {
Write-Host "flow is up-to-date (version $version @ $install_dir)"
Write-Host "$title is up-to-date (version $version @ $install_dir)"
return
}
}
}
$title = "$title $version"
switch ($env:PROCESSOR_ARCHITECTURE) {
"AMD64" { $arch = "x86_64" }
"ARM64" { $arch = "aarch64" }

View file

@ -7,7 +7,6 @@ $updater = "install"
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
$version = $release.tag_name
$title_updater = "$title updater"
$title = "$title $version"
$install_dir = "$env:APPDATA\flow\bin"
$existing_flow = Join-Path -Path $install_dir -ChildPath "flow.exe"
@ -17,12 +16,14 @@ if (Test-Path $existing_flow) {
if ($existing_version_lines -and $matches) {
$existing_version = $matches[1]
if ($version -eq $existing_version) {
Write-Host "flow is up-to-date (version $version @ $install_dir)"
Write-Host "$title is up-to-date (version $version @ $install_dir)"
return
}
}
}
$title = "$title $version"
switch ($env:PROCESSOR_ARCHITECTURE) {
"AMD64" { $arch = "x86_64" }
"ARM64" { $arch = "aarch64" }