From 211dfacb5087c2baa750178d3f701b5d0bdd7a30 Mon Sep 17 00:00:00 2001 From: Frederic Jean Date: Tue, 8 Jan 2013 15:13:34 -0700 Subject: [PATCH 1/2] Adjusting path to icon Adjusting path to icon to reflect the metadata. --- lib/beta_builder/archived_build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/beta_builder/archived_build.rb b/lib/beta_builder/archived_build.rb index d9639e0..0971d49 100644 --- a/lib/beta_builder/archived_build.rb +++ b/lib/beta_builder/archived_build.rb @@ -76,7 +76,7 @@ def write_plist_to(path) "ApplicationPath" => File.join("Applications", @configuration.app_file_name), "CFBundleIdentifier" => metadata["CFBundleIdentifier"], "CFBundleShortVersionString" => version, - "IconPaths" => metadata["CFBundleIconFiles"].map { |file| File.join("Applications", @configuration.app_file_name, file) } + "IconPaths" => metadata["CFBundleIcons"]["CFBundlePrimaryIcon"]["CFBundleIconFiles"].map { |file| File.join("Applications", @configuration.app_file_name, file) } }, "ArchiveVersion" => 1.0, "Comment" => @configuration.release_notes_text, From 07b022dcb835397f492673e7be1e7d1f29ee951d Mon Sep 17 00:00:00 2001 From: Frederic Jean Date: Tue, 8 Jan 2013 15:29:12 -0700 Subject: [PATCH 2/2] Using FileUtils.rm_rf --- lib/beta_builder/deployment_strategies/testflight.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/beta_builder/deployment_strategies/testflight.rb b/lib/beta_builder/deployment_strategies/testflight.rb index 41250aa..359a2c0 100644 --- a/lib/beta_builder/deployment_strategies/testflight.rb +++ b/lib/beta_builder/deployment_strategies/testflight.rb @@ -67,7 +67,7 @@ def get_notes_using_editor system("#{editor} #{filepath}") @configuration.release_notes = File.read(filepath) ensure - rm_rf(dir) + FileUtils.rm_rf(dir) end end