detect arm through version and not platofrm (#343)
This commit is contained in:
1 parent
79470fd13e
commit
e156fea09c
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
PROGRAM_NAME = "KaTrain"
|
PROGRAM_NAME = "KaTrain"
|
||||||
VERSION = "1.7.4"
|
VERSION = "1.7.5"
|
||||||
HOMEPAGE = "https://github.com/sanderland/katrain"
|
HOMEPAGE = "https://github.com/sanderland/katrain"
|
||||||
CONFIG_MIN_VERSION = "1.7.0" # keep config files from this version
|
CONFIG_MIN_VERSION = "1.7.0" # keep config files from this version
|
||||||
ANALYSIS_FORMAT_VERSION = "1.0"
|
ANALYSIS_FORMAT_VERSION = "1.0"
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class KataGoEngine:
|
|||||||
exe = "katrain/KataGo/katago"
|
exe = "katrain/KataGo/katago"
|
||||||
else:
|
else:
|
||||||
exe = find_package_resource("katrain/KataGo/katago-osx") # github actions built
|
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
|
exe = "katago" # e.g. MacOS after brewing
|
||||||
|
|
||||||
model = find_package_resource(config["model"])
|
model = find_package_resource(config["model"])
|
||||||
|
|||||||
Reference in new issue
Block a user