mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
changed make_release.py script, so it can correctly create universal binary on all architectures
This commit is contained in:
parent
1fb4ead61a
commit
242e551142
|
@ -83,9 +83,16 @@ if include_src:
|
|||
shutil.copy("configure.lua", package_dir)
|
||||
|
||||
if use_bundle:
|
||||
os.system("lipo -create -output "+name+"_srv "+name+"_srv"+"_ppc "+name+"_srv"+"_x86")
|
||||
os.system("lipo -create -output "+name+" "+name+"_ppc "+name+"_x86")
|
||||
os.system("lipo -create -output serverlaunch serverlaunch_ppc serverlaunch_x86")
|
||||
bins = [name, name+'_srv', 'serverlaunch']
|
||||
platforms = ('x86', 'x86_64', 'ppc')
|
||||
for bin in bins:
|
||||
to_lipo = []
|
||||
for p in platforms:
|
||||
fname = bin+'_'+p
|
||||
if os.path.isfile(fname):
|
||||
to_lipo.append(fname)
|
||||
if to_lipo:
|
||||
os.system("lipo -create -output "+bin+" "+" ".join(to_lipo))
|
||||
|
||||
# create Teeworlds appfolder
|
||||
clientbundle_content_dir = os.path.join(package_dir, "Teeworlds.app/Contents")
|
||||
|
|
Loading…
Reference in a new issue