Update fastlane decryption

This commit is contained in:
Isaac
2024-07-12 11:37:21 +04:00
parent 38a5a886c8
commit 9bb5be209f
2 changed files with 162 additions and 1 deletions

View File

@@ -104,11 +104,16 @@ def decrypt_codesigning_directory_recursively(source_base_path, destination_base
source_path = source_base_path + '/' + file_name
destination_path = destination_base_path + '/' + file_name
if os.path.isfile(source_path):
os.system('openssl aes-256-cbc -md md5 -k "{password}" -in "{source_path}" -out "{destination_path}" -a -d 2>/dev/null'.format(
os.system('ruby build-system/decrypt.rb "{password}" "{source_path}" "{destination_path}"'.format(
password=password,
source_path=source_path,
destination_path=destination_path
))
'''os.system('openssl aes-256-cbc -md md5 -k "{password}" -in "{source_path}" -out "{destination_path}" -a -d 2>/dev/null'.format(
password=password,
source_path=source_path,
destination_path=destination_path
))'''
elif os.path.isdir(source_path):
os.makedirs(destination_path, exist_ok=True)
decrypt_codesigning_directory_recursively(source_path, destination_path, password)