lib/gym/runner.rb in gym-1.1.1 vs lib/gym/runner.rb in gym-1.1.2
- old
+ new
@@ -122,24 +122,23 @@
end
# Moves over the binary and dsym file to the output directory
# @return (String) The path to the resulting ipa file
def move_ipa
- FileUtils.mv(PackageCommandGenerator.ipa_path, Gym.config[:output_directory], force: true)
+ FileUtils.mv(PackageCommandGenerator.ipa_path, File.expand_path(Gym.config[:output_directory]), force: true)
+ ipa_path = File.expand_path(File.join(Gym.config[:output_directory], File.basename(PackageCommandGenerator.ipa_path)))
- ipa_path = File.join(Gym.config[:output_directory], File.basename(PackageCommandGenerator.ipa_path))
-
Helper.log.info "Successfully exported and signed the ipa file:".green
Helper.log.info ipa_path
ipa_path
end
# Move the .app from the archive into the output directory
def move_mac_app
app_path = Dir[File.join(BuildCommandGenerator.archive_path, "Products/Applications/*.app")].last
raise "Couldn't find application in '#{BuildCommandGenerator.archive_path}'".red unless app_path
- FileUtils.mv(app_path, Gym.config[:output_directory], force: true)
+ FileUtils.mv(app_path, File.expand_path(Gym.config[:output_directory]), force: true)
app_path = File.join(Gym.config[:output_directory], File.basename(app_path))
Helper.log.info "Successfully exported the .app file:".green
Helper.log.info app_path
app_path