lib/appbundler/app.rb in appbundler-0.1.0 vs lib/appbundler/app.rb in appbundler-0.2.0
- old
+ new
@@ -30,9 +30,15 @@
executables_to_create.each do |real_executable_path, stub_path|
File.open(stub_path, "wb", 0755) do |f|
f.write(binstub(real_executable_path))
end
+ if RUBY_PLATFORM =~ /mswin|mingw|windows/
+ batch_wrapper_path = "#{stub_path}.bat"
+ File.open(batch_wrapper_path, "wb", 0755) do |f|
+ f.write(batchfile_stub)
+ end
+ end
end
executables_to_create
end