Asset suffix should be const, not constexpr

This commit is contained in:
Dan Paulat 2025-08-30 22:38:31 -05:00
parent 07adbb382d
commit 2beac20ee3

View file

@ -93,9 +93,9 @@ void UpdateDialog::Impl::HandleAsset(const types::gh::ReleaseAsset& asset)
#if defined(_WIN32)
# if defined(_M_AMD64)
static constexpr std::string assetSuffix = "-x64.msi";
static const std::string assetSuffix = "-x64.msi";
# else
static constexpr std::string assetSuffix = "-arm64.msi";
static const std::string assetSuffix = "-arm64.msi";
# endif
if (asset.name_.ends_with(assetSuffix))