def command(self, c):
command('%s %s' % (self.variables_string(False), c))
- def build(self, *a, **k):
+ def unlock_keychain(self):
self.command('security unlock-keychain -p %s %s' % (self.osx_keychain_password, self.osx_keychain_file))
- return super().build(*a, **k)
class OSXSingleTarget(OSXTarget):
def package(self, project, checkout, output_dir, options, no_notarize):
tree = self.build(project, checkout, options)
tree.add_defaults(options)
+ self.unlock_keychain()
p = self._build_packages(tree, options)
for x in p:
if not isinstance(x, tuple):
tree.build_dependencies(options)
tree.build(options)
+ self.unlock_keychain()
tree = globals.trees.get(project, checkout, self)
with TreeDirectory(tree):
if len(inspect.getfullargspec(tree.cscript['package']).args) == 3:
target = LinuxTarget(p[0], None, int(p[1]), args.work)
elif s == 'raspbian':
target = LinuxTarget(s, None, None, args.work)
- elif s == 'osx-intel':
- # Universal Intel 32/64-bit
+ elif s == 'osx-intel-32-64':
+ # Universal Intel 32/64-bit built for config's os_sdk
if args.command == 'build':
target = OSXSingleTarget('x86_64', args.work)
else:
target = OSXUniversalTarget(('i386', 'x86_64'), args.work)
- elif s == 'osx-arm':
- # Universal arm64 and Intel 64-bit
+ elif s == 'osx-arm-intel-64':
+ # Universal arm64 and Intel 64-bit built for SDK 11.0
target = OSXUniversalTarget(('arm64', 'x86_64'), args.work)
+ elif s == 'osx-arm64':
+ target = OSXSingleTarget('arm64', '11.0', args.work)
elif s == 'source':
target = SourceTarget()
elif s == 'flatpak':