fix: use full package title in up-to-date message in windows installer
This commit is contained in:
parent
1853955b4e
commit
742c9f997e
2 changed files with 6 additions and 4 deletions
|
@ -7,7 +7,6 @@ $updater = "install-nightly"
|
||||||
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
|
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
|
||||||
$version = $release.tag_name
|
$version = $release.tag_name
|
||||||
$title_updater = "$title updater"
|
$title_updater = "$title updater"
|
||||||
$title = "$title $version"
|
|
||||||
$install_dir = "$env:APPDATA\flow\bin"
|
$install_dir = "$env:APPDATA\flow\bin"
|
||||||
|
|
||||||
$existing_flow = Join-Path -Path $install_dir -ChildPath "flow.exe"
|
$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) {
|
if ($existing_version_lines -and $matches) {
|
||||||
$existing_version = $matches[1]
|
$existing_version = $matches[1]
|
||||||
if ($version -eq $existing_version) {
|
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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$title = "$title $version"
|
||||||
|
|
||||||
switch ($env:PROCESSOR_ARCHITECTURE) {
|
switch ($env:PROCESSOR_ARCHITECTURE) {
|
||||||
"AMD64" { $arch = "x86_64" }
|
"AMD64" { $arch = "x86_64" }
|
||||||
"ARM64" { $arch = "aarch64" }
|
"ARM64" { $arch = "aarch64" }
|
||||||
|
|
|
@ -7,7 +7,6 @@ $updater = "install"
|
||||||
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
|
$release = Invoke-RestMethod -Uri "https://api.github.com/repos/$repo/releases/latest"
|
||||||
$version = $release.tag_name
|
$version = $release.tag_name
|
||||||
$title_updater = "$title updater"
|
$title_updater = "$title updater"
|
||||||
$title = "$title $version"
|
|
||||||
$install_dir = "$env:APPDATA\flow\bin"
|
$install_dir = "$env:APPDATA\flow\bin"
|
||||||
|
|
||||||
$existing_flow = Join-Path -Path $install_dir -ChildPath "flow.exe"
|
$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) {
|
if ($existing_version_lines -and $matches) {
|
||||||
$existing_version = $matches[1]
|
$existing_version = $matches[1]
|
||||||
if ($version -eq $existing_version) {
|
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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$title = "$title $version"
|
||||||
|
|
||||||
switch ($env:PROCESSOR_ARCHITECTURE) {
|
switch ($env:PROCESSOR_ARCHITECTURE) {
|
||||||
"AMD64" { $arch = "x86_64" }
|
"AMD64" { $arch = "x86_64" }
|
||||||
"ARM64" { $arch = "aarch64" }
|
"ARM64" { $arch = "aarch64" }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue