@@ -41,10 +41,18 @@ def download_binary(tag, args) -> int:
4141 return 0
4242 shutil .rmtree (tag )
4343 Path (tag ).mkdir ()
44+ bin_path = 'bin/syscoin-core-{}' .format (tag [1 :])
45+ match = re .compile ('v(.*)(rc[0-9]+)$' ).search (tag )
46+ if match :
47+ bin_path = 'bin/syscoin-core-{}/test.{}' .format (
48+ match .group (1 ), match .group (2 ))
49+ platform = args .platform
50+ if tag < "v23" and platform in ["x86_64-apple-darwin" , "arm64-apple-darwin" ]:
51+ platform = "osx64"
4452 tarball = 'syscoin-{tag}-{platform}.tar.gz' .format (
45- tag = tag [1 :], platform = args . platform )
53+ tag = tag [1 :], platform = platform )
4654 tarballUrl = 'https://github.com/syscoin/syscoin/releases/download/{tag}/{tarball}' .format (
47- tag = tag , tarball = tarball )
55+ bin_path = bin_path , tarball = tarball )
4856
4957 print ('Fetching: {tarballUrl}' .format (tarballUrl = tarballUrl ))
5058
@@ -146,8 +154,8 @@ def check_host(args) -> int:
146154 platforms = {
147155 'aarch64-*-linux*' : 'aarch64-linux-gnu' ,
148156 'x86_64-*-linux*' : 'x86_64-linux-gnu' ,
149- 'x86_64-apple-darwin*' : 'osx64 ' ,
150- 'aarch64-apple-darwin*' : 'osx64 ' ,
157+ 'x86_64-apple-darwin*' : 'x86_64-apple-darwin ' ,
158+ 'aarch64-apple-darwin*' : 'arm64-apple-darwin ' ,
151159 }
152160 args .platform = ''
153161 for pattern , target in platforms .items ():
0 commit comments