Permalink
Browse files

bundle nodejs for windows

  • Loading branch information...
1 parent 02d72cb commit 903be28babbdaa6b62c8d81f1ff5ccfc3e2f9ffa @tka tka committed Feb 20, 2013
Showing with 11 additions and 2 deletions.
  1. +3 −0 Rakefile
  2. BIN lib/nodejs/node-win32-0.8.20.exe
  3. +1 −0 src/coffee_compiler.rb
  4. +2 −2 src/compile_version.rb
  5. +5 −0 src/main.rb
View
@@ -61,6 +61,9 @@ INFO_ENDL
%x{mkdir -p #{CONFIG.windows_output_dir}/lib/swt}
%x{cp -R lib/swt/swt_win* #{CONFIG.windows_output_dir}/lib/swt}
+
+ %x{mkdir -p #{CONFIG.windows_output_dir}/lib/nodejs}
+ %x{cp -R lib/nodejs/node-win* #{CONFIG.windows_output_dir}/lib/nodejs/node.exe}
%w{ruby images documents javascripts}.each do | copy_dir |
%x{cp -R lib/#{copy_dir} #{CONFIG.windows_output_dir}/lib }
Binary file not shown.
View
@@ -1,3 +1,4 @@
+
require 'time'
require 'pathname'
require 'coffee_script'
View
@@ -1,5 +1,5 @@
module CompileVersion
- REVISION = 'ad6a37e501'
- COMPILE_TIME = '201302190651'
+ REVISION = 'a6beafbc81'
+ COMPILE_TIME = '201302200843'
UPDATE_URL = ''
end
View
@@ -10,6 +10,11 @@
LIB_PATH = File.expand_path 'lib'
end
+# bundle nodejs for windows so we need add node.exe path to ENV['PATH']
+if org.jruby.platform.Platform::IS_WINDOWS
+ ENV['PATH'] = File.join(LIB_PATH,'nodejs')+File::PATH_SEPARATOR+ENV['PATH']
+end
+
require "swt_wrapper"
require "ui/splash_window"
SplashWindow.instance.replace('Loading...')

0 comments on commit 903be28

Please sign in to comment.