bin/rb2exe in rb2exe-0.1.54 vs bin/rb2exe in rb2exe-0.1.55

- old
+ new

@@ -79,20 +79,20 @@ puts "#{tmp_dir}/payload/lib/app/Gemfile" if File.exists?("#{tmp_dir}/payload/lib/app/Gemfile") puts "Gemfile detected. Loading gems." unless options[:quiet] FileUtils.mkdir_p("#{tmp_dir}/payload/lib/tmp") # Create a "tmp" folder on ".package/payload/lib" FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile", "#{tmp_dir}/payload/lib/tmp/") # Copy the project Gemfile to tmp - FileUtils.cp_rf("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/tmp/") + FileUtils.cp_r("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/tmp/") # Download gems into the "lib/vendor" folder Bundler.with_clean_env do Dir.chdir("#{tmp_dir}/payload/lib/app") do `bundle install --path #{tmp_dir}/payload/lib/vendor --without development` end end FileUtils.rm_rf("#{tmp_dir}/payload/lib/tmp/") # Delete tmp folder %x[cd #{tmp_dir}/payload/lib/ && rm -f vendor/*/*/cache/*] # Delete gem's cache in the vendor folder FileUtils.cp("#{tmp_dir}/payload/lib/app/Gemfile", "#{tmp_dir}/payload/lib/vendor/") # Copy the Gemfile to the vendor folder - FileUtils.cp_rf("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/vendor/") + FileUtils.cp_r("#{tmp_dir}/payload/lib/app/Gemfile.lock", "#{tmp_dir}/payload/lib/vendor/") # Create a bundler config FileUtils.mkdir_p("#{tmp_dir}/payload/lib/vendor/.bundle") FileUtils.cp("#{gem_dir}/lib/bundler-config", "#{tmp_dir}/payload/lib/vendor/.bundle/config") end