mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 14:30:04 +00:00
Look for the appropriate .msi asset suffix depending on platform
This commit is contained in:
parent
7527e845a9
commit
791bf16586
1 changed files with 8 additions and 1 deletions
|
|
@ -91,7 +91,14 @@ void UpdateDialog::UpdateReleaseInfo(const std::string& latestVersion,
|
||||||
void UpdateDialog::Impl::HandleAsset(const types::gh::ReleaseAsset& asset)
|
void UpdateDialog::Impl::HandleAsset(const types::gh::ReleaseAsset& asset)
|
||||||
{
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
if (asset.name_.ends_with(".msi"))
|
|
||||||
|
# if defined(_M_AMD64)
|
||||||
|
static constexpr std::string assetSuffix = "-x64.msi";
|
||||||
|
# else
|
||||||
|
static constexpr std::string assetSuffix = "-arm64.msi";
|
||||||
|
# endif
|
||||||
|
|
||||||
|
if (asset.name_.ends_with(assetSuffix))
|
||||||
{
|
{
|
||||||
self_->ui->installUpdateButton->setVisible(true);
|
self_->ui->installUpdateButton->setVisible(true);
|
||||||
installUrl_ = asset.browserDownloadUrl_;
|
installUrl_ = asset.browserDownloadUrl_;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue