fix(android): unzip bug (close #20) #21
@ -15,6 +15,8 @@ module Fastlane
|
||||
# Decrypt the keys archive and Extract the keys archive
|
||||
Helper::AndroidCdHelper.decrypt_android_keys('.')
|
||||
|
||||
UI.message("👉🏼 Credentials decrypted")
|
||||
|
||||
# Clean the project before building
|
||||
other_action.gradle(task: "clean")
|
||||
|
||||
@ -26,11 +28,14 @@ module Fastlane
|
||||
task: "bundle",
|
||||
build_type: "Release",
|
||||
print_command: true,
|
||||
project_dir: 'android/',
|
||||
properties: {
|
||||
"android.injected.version.code" => build_number
|
||||
}
|
||||
)
|
||||
|
||||
UI.message("👉🏼 App built")
|
||||
|
||||
# Upload the Android App Bundle to the Play Store
|
||||
other_action.upload_to_play_store(
|
||||
track: params[:beta_type],
|
||||
|
@ -15,7 +15,7 @@ module Fastlane
|
||||
if $?.success?
|
||||
|
||||
# Move the extracted files to the current directory
|
||||
`jar xvf #{android_directory} && mv #{android_directory}/android_keys/* #{android_directory}`
|
||||
`jar xvf #{android_directory}/android_keys.zip && mv #{android_directory}/android_keys/* #{android_directory}`
|
||||
else
|
||||
UI.user_error!("❌ Erreur lors de la décompression du fichier GPG")
|
||||
end
|
||||
|
@ -15,8 +15,6 @@ module Fastlane
|
||||
# Decrypts ios credentials
|
||||
def self.decrypt_ios_keys(ios_directory)
|
||||
# Define the GPG command with options
|
||||
system('echo test')
|
||||
system("echo #{ENV['IOS_KEYS_SECRET_PASSPHRASE']}")
|
||||
gpg_command = "gpg --quiet --batch --yes --decrypt --passphrase=#{ENV['IOS_KEYS_SECRET_PASSPHRASE']} \
|
||||
--output #{ios_directory}/ios_keys.zip #{ios_directory}/ios_keys.zip.gpg"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user