added mac release scripts

This commit is contained in:
essej
2022-04-14 10:06:10 -04:00
parent b3414a292e
commit 1c100ced23
14 changed files with 2818 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
#!/usr/bin/env python3
# adjust version for packages
import os,sys
import plistlib
if len(sys.argv) < 4:
print('Usage: %s <version> <infile.pkgproj> <outfile.pkgproj>', file=sys.stderr)
sys.exit(1)
version = sys.argv[1]
with open(sys.argv[2], 'rb') as infile:
dict = plistlib.load(infile)
for n in range(0, len(dict['PACKAGES'])):
dict['PACKAGES'][n]['PACKAGE_SETTINGS']['VERSION'] = version
with open(sys.argv[3], 'wb') as fp:
plistlib.dump(dict, fp)