Skip to content

Commit

Permalink
Include architecture in release name stem.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-seddon committed Aug 17, 2024
1 parent 502280b commit dfbbfdb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions etc/release/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,12 +302,18 @@ def copy_darwin_app(config,mount,app_name):
run(["ditto",get_darwin_build_path(config,"src/b2/b2.app"),dest])

def build_darwin(options,ifolder,rev_hash):
arch=subprocess.check_output(['uname','-m']).decode('utf-8').rstrip()
if arch=='x86_64': arch='intel'
elif arch=='arm64': arch='applesilicon'
else: fatal('unknown architecture from uname -m: %s'%arch)

if not options.skip_debug: build_darwin_config(options,"r")
build_darwin_config(options,"f")

stem="b2-macos-"
if options.macos_deployment_target is not None:
stem+='%s-'%options.macos_deployment_target
stem+='%s-'%arch
stem+=options.release_name

#
Expand Down

0 comments on commit dfbbfdb

Please sign in to comment.