[DEBUG] compile OK in IOs even if secret key not present (release mode)
This commit is contained in:
parent
328681d44b
commit
16c019ac5b
@ -340,15 +340,17 @@ class Target(target.Target):
|
|||||||
debug.print_element("pkg(signed)", "pkg", "<==", "Signing application")
|
debug.print_element("pkg(signed)", "pkg", "<==", "Signing application")
|
||||||
iosDevelopperKeyFile = ".iosKey.txt"
|
iosDevelopperKeyFile = ".iosKey.txt"
|
||||||
if tools.file_size(iosDevelopperKeyFile) < 10:
|
if tools.file_size(iosDevelopperKeyFile) < 10:
|
||||||
debug.error("To sign an application we need to have a signing key in the file '" + iosDevelopperKeyFile + "' \n it is represented like: 'iPhone Developer: Francis DUGENOUX (YRRQE5KGTH)'\n you can obtain it with : 'certtool y | grep \"Developer\"'")
|
debug.warning("To sign an application we need to have a signing key in the file '" + iosDevelopperKeyFile + "' \n it is represented like: 'iPhone Developer: Francis DUGENOUX (YRRQE5KGTH)'\n you can obtain it with : 'certtool y | grep \"Developer\"'")
|
||||||
signatureKey = tools.file_read_data(iosDevelopperKeyFile)
|
debug.warning("Can not be install ... not runnable")
|
||||||
signatureKey = re.sub('\n', '', signatureKey)
|
else:
|
||||||
cmdLine = 'codesign --force --sign '
|
signatureKey = tools.file_read_data(iosDevelopperKeyFile)
|
||||||
# to get this key ; certtool y | grep "Developer"
|
signatureKey = re.sub('\n', '', signatureKey)
|
||||||
cmdLine += ' "' + signatureKey + '" '
|
cmdLine = 'codesign --force --sign '
|
||||||
cmdLine += ' --entitlements ' + self.get_build_path(pkg_name) + '/worddown.xcent'
|
# to get this key ; certtool y | grep "Developer"
|
||||||
cmdLine += ' ' + self.get_staging_path(pkg_name)
|
cmdLine += ' "' + signatureKey + '" '
|
||||||
multiprocess.run_command(cmdLine)
|
cmdLine += ' --entitlements ' + self.get_build_path(pkg_name) + '/worddown.xcent'
|
||||||
|
cmdLine += ' ' + self.get_staging_path(pkg_name)
|
||||||
|
multiprocess.run_command(cmdLine)
|
||||||
|
|
||||||
def createRandomNumber(self, len):
|
def createRandomNumber(self, len):
|
||||||
out = ""
|
out = ""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user