Skip to content

Commit

Permalink
Merge branch 'fix-coffeescript-compile'
Browse files Browse the repository at this point in the history
Conflicts:
	src/compile_version.rb
  • Loading branch information
hungtatai committed Jun 29, 2013
2 parents 075a669 + 5f8829f commit 65bbbcc
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 4 deletions.
10 changes: 8 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ INFO_ENDL
%x{mkdir -p #{CONFIG.osx_output_dir}/#{CONFIG.project_name}.app/Contents/Resources/lib/swt}
%x{cp -R lib/swt/swt_osx* #{CONFIG.osx_output_dir}/#{CONFIG.project_name}.app/Contents/Resources/lib/swt}

%x{mkdir -p #{CONFIG.osx_output_dir}/#{CONFIG.project_name}.app/Contents/Resources/lib/nodejs/osx}
%x{cp -R lib/nodejs/osx/node* #{CONFIG.osx_output_dir}/#{CONFIG.project_name}.app/Contents/Resources/lib/nodejs/osx/node}

%w{ruby images applescript documents javascripts}.each do | copy_dir |
%x{cp -R lib/#{copy_dir} #{CONFIG.osx_output_dir}/#{CONFIG.project_name}.app/Contents/Resources/lib }
end
Expand All @@ -63,8 +66,8 @@ 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}
%x{mkdir -p #{CONFIG.windows_output_dir}/lib/nodejs/win}
%x{cp -R lib/nodejs/win/node-win* #{CONFIG.windows_output_dir}/lib/nodejs/win/node.exe}

%w{ruby images documents javascripts}.each do | copy_dir |
%x{cp -R lib/#{copy_dir} #{CONFIG.windows_output_dir}/lib }
Expand All @@ -85,6 +88,9 @@ INFO_ENDL
%x{mkdir -p package/jar/lib/swt}
%x{cp -R lib/swt/swt_linux* package/jar/lib/swt}

%x{mkdir -p package/jar/lib/nodejs/linux}
%x{cp -R lib/nodejs/linux/node* package/jar/lib/nodejs/linux/node}

%w{ruby images documents javascripts}.each do | copy_dir |
%x{cp -R lib/#{copy_dir} package/jar/lib }
end
Expand Down
Binary file added lib/nodejs/linux/node
Binary file not shown.
Binary file added lib/nodejs/osx/node
Binary file not shown.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/ruby/common/tka-serve
10 changes: 9 additions & 1 deletion src/main.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,19 @@
LIB_PATH = File.expand_path 'lib'
end

# set execjs runtime
ENV["EXECJS_RUNTIME"] = "Node"

# 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']
ENV['PATH'] = File.join(LIB_PATH,'nodejs','win')+File::PATH_SEPARATOR+ENV['PATH']
elsif org.jruby.platform.Platform::IS_MAC
ENV['PATH'] = File.join(LIB_PATH,'nodejs','osx')+File::PATH_SEPARATOR+ENV['PATH']
elsif org.jruby.platform.Platform::IS_LINUX
ENV['PATH'] = File.join(LIB_PATH,'nodejs','linux')+File::PATH_SEPARATOR+ENV['PATH']
end


require "swt_wrapper"
require "ui/splash_window"
SplashWindow.instance.replace('Loading...')
Expand Down

0 comments on commit 65bbbcc

Please sign in to comment.