@@ -571,8 +571,9 @@ EngineService::GetEngineVariants(const std::string& engine,
571571 engine_release_menlo.value ().assets .end (), std::back_inserter (assets),
572572 [get_os_major](const github_release_utils::GitHubAsset& assets) {
573573#if defined(__APPLE__) && defined(__MACH__)
574- if (get_os_major () <= 12 &&
575- assets.name .find (kMacOs ) != std::string::npos) {
574+ if ((assets.name .find (kMacOs ) == std::string::npos) ||
575+ (get_os_major () <= 12 &&
576+ assets.name .find (kMacOs ) != std::string::npos)) {
576577 return true ;
577578 }
578579 return false ;
@@ -589,8 +590,9 @@ EngineService::GetEngineVariants(const std::string& engine,
589590 engine_release_ggml.value ().assets .end (), std::back_inserter (assets),
590591 [get_os_major](const github_release_utils::GitHubAsset& assets) {
591592#if defined(__APPLE__) && defined(__MACH__)
592- if (get_os_major () > 12 &&
593- assets.name .find (kMacOs ) != std::string::npos) {
593+ if ((assets.name .find (kMacOs ) == std::string::npos) ||
594+ (get_os_major () > 12 &&
595+ assets.name .find (kMacOs ) != std::string::npos)) {
594596 return true ;
595597 }
596598 return false ;
@@ -776,10 +778,10 @@ EngineService::GetInstalledEngineVariants(const std::string& engine) const {
776778 try {
777779 auto node = YAML::LoadFile (version_txt_path.string ());
778780 auto ev = EngineVariantResponse{
779- node[" name" ].as <std::string>(), // name
781+ node[" name" ].as <std::string>(), // name
780782 node[" version" ].as <std::string>(), // version
781- engine, // engine
782- " " , // type
783+ engine, // engine
784+ " " , // type
783785 };
784786 variants.push_back (ev);
785787 } catch (const YAML::Exception& e) {
0 commit comments