detect arm through version and not platofrm (#343)

This commit is contained in:
Sander Land authored and GitHub committed 2021-01-28 13:00:39 +01:00
1 parent 79470fd13e
commit e156fea09c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
PROGRAM_NAME = "KaTrain"
VERSION = "1.7.4"
VERSION = "1.7.5"
HOMEPAGE = "https://github.com/sanderland/katrain"
CONFIG_MIN_VERSION = "1.7.0" # keep config files from this version
ANALYSIS_FORMAT_VERSION = "1.0"
+1 -1
View File
@@ -67,7 +67,7 @@ class KataGoEngine:
exe = "katrain/KataGo/katago"
else:
exe = find_package_resource("katrain/KataGo/katago-osx") # github actions built
if not os.path.isfile(exe) or "arm" in platform.machine():
if not os.path.isfile(exe) or "arm64" in platform.version().lower():
exe = "katago" # e.g. MacOS after brewing
model = find_package_resource(config["model"])