Skip to content

Commit

Permalink
Produce Frankified.app from the compiled app more carefully
Browse files Browse the repository at this point in the history
With the --noclean option there are possibly more than one *.app
directories in the frankified_build directory. At least discard
the Frankified.app directory as the source directory.

Copy recursively instead of moving so that the source directory
remains ready for the next build.
  • Loading branch information
akikoskinen committed Nov 5, 2012
1 parent f791937 commit caa6d03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gem/lib/frank-cucumber/cli.rb
Expand Up @@ -80,7 +80,9 @@ def build

run %Q|xcodebuild -xcconfig Frank/frankify.xcconfig #{build_steps} #{extra_opts} -configuration Debug -sdk iphonesimulator DEPLOYMENT_LOCATION=YES DSTROOT="#{build_output_dir}" FRANK_LIBRARY_SEARCH_PATHS="\\"#{frank_lib_directory}\\""|

FileUtils.mv( Dir.glob( "#{build_output_dir}/*.app" ).first, frankified_app_dir )
app = Dir.glob("#{build_output_dir}/*.app").delete_if { |x| x =~ /\/#{app_bundle_name}$/ }
app = app.first
FileUtils.cp_r("#{app}/.", frankified_app_dir)

fix_frankified_apps_bundle_identifier

Expand Down

0 comments on commit caa6d03

Please sign in to comment.