Skip to content

Commit 385077a

Browse files
committed
Fixes get-geekbench on macos
1 parent b9c84fc commit 385077a

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

script/get-geekbench/customize.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def preprocess(i):
3636
arch_suffix = 'Linux'
3737
package_name = f"Geekbench-{need_version}-{arch_suffix}.tar.gz"
3838
elif os_info['platform'] == 'darwin':
39-
package_name = f"Geekbench-{need_version}-Mac.tar.gz"
39+
package_name = f"Geekbench-{need_version}-Mac.zip"
4040
else:
4141
return {'return': 1,
4242
'error': f"Unsupported platform: {os_info['platform']}"}
@@ -99,7 +99,7 @@ def postprocess(i):
9999
elif os_info['platform'] == 'darwin':
100100
# macOS: binary is inside the .app bundle
101101
# e.g. Geekbench 6.app/Contents/MacOS/Geekbench 6
102-
app_pattern = os.path.join(geekbench_dir, 'Geekbench*.app')
102+
app_pattern = os.path.join(extracted_path, 'Geekbench*.app')
103103
app_matches = glob.glob(app_pattern)
104104
if app_matches:
105105
app_dir = app_matches[0]
@@ -124,6 +124,7 @@ def postprocess(i):
124124
bin_name = f"geekbench{version_major}"
125125
geekbench_bin = os.path.join(geekbench_dir, bin_name)
126126

127+
print(os_info)
127128
# Make executable on Unix
128129
if os_info['platform'] != 'windows' and os.path.isfile(geekbench_bin):
129130
os.chmod(geekbench_bin, 0o755)

script/get-geekbench/meta.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ cache: true
55
category: Detection or installation of tools and artifacts
66
default_env:
77
MLC_GEEKBENCH_VERSION_MAJOR: '6'
8-
default_version: 6.4.0
8+
default_version: 6.6.0
99
deps:
1010
- tags: detect,os
1111
- tags: detect,cpu
@@ -44,3 +44,6 @@ versions:
4444
6.4.0:
4545
env:
4646
MLC_GEEKBENCH_VERSION_MAJOR: '6'
47+
6.6.0:
48+
env:
49+
MLC_GEEKBENCH_VERSION_MAJOR: '6'

0 commit comments

Comments
 (0)