File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ cache: true
55category : Detection or installation of tools and artifacts
66default_env :
77 MLC_GEEKBENCH_VERSION_MAJOR : ' 6'
8- default_version : 6.4 .0
8+ default_version : 6.6 .0
99deps :
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'
You can’t perform that action at this time.
0 commit comments