From 742c9f997ef5b2027e5b08ac171c65a6aade4e04 Mon Sep 17 00:00:00 2001 From: CJ van den Berg Date: Tue, 24 Jun 2025 21:45:07 +0200 Subject: [PATCH] fix: use full package title in up-to-date message in windows installer --- assets/install-nightly.ps1 | 5 +++-- assets/install.ps1 | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/install-nightly.ps1 b/assets/install-nightly.ps1 index 47a6fa7..4038d9c 100644 --- a/assets/install-nightly.ps1 +++ b/assets/install-nightly.ps1 @@ -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" } diff --git a/assets/install.ps1 b/assets/install.ps1 index daea0de..b53adde 100644 --- a/assets/install.ps1 +++ b/assets/install.ps1 @@ -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" }