Sha256: 3e883dcf96c6660bc1e5be621557f111296b09f01b7cfafe6352d79b08f06189
Contents?: true
Size: 1.88 KB
Versions: 76
Compression:
Stored size: 1.88 KB
Contents
namespace "config" do task :linux => ["config:common"] do $config["platform"] = "linux" $rubypath = "platform/linux/target/compiler/rubylinux" #path to RubyMac $bindir = $app_path + "/bin" $srcdir = $bindir + "/RhoBundle" $excludelib = ['**/builtinME.rb','**/ServeME.rb','**/TestServe.rb'] $tmpdir = $bindir +"/tmp" $homedir = `echo ~`.to_s.strip end end namespace "build" do namespace "linux" do task :rhobundle =>["config:linux"] do mkdir_p $srcdir unless File.exists? $srcdir Rake::Task["build:bundle:noxruby"].execute current = pwd chdir $srcdir puts `zip rhobundle.zip -r apps lib` chdir current end end end namespace "desktop" do task :win32, [:simpath] => "build:linux:rhobundle" do |t,args| chdir $srcdir rm_f File.join($srcdir,"rhodes-simulator.zip") mkdir "tmp" cp_r "#{args.simpath}/rho", "tmp/" cp_r "#{$srcdir}/apps", "tmp/rho/" cp_r "#{$srcdir}/lib", "tmp/rho/" cp_r "#{args.simpath}/rhodes.exe", "tmp/" chdir "tmp" puts `zip ../rhodes-simulator.zip -r *` chdir $srcdir rm_rf "tmp" end task :osx, [:simpath] => "build:linux:rhobundle" do |t,args| chdir $srcdir rm_f File.join($srcdir,"rhodes-simulator.zip") mkdir "tmp" cp_r "#{args.simpath}", "tmp/" rm_rf "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/apps" rm_rf "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/lib" cp_r "#{$srcdir}/apps", "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/" cp_r "#{$srcdir}/lib", "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/" rm "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/icon.png" cp "#{$app_path}/icon/icon.png", "tmp/Rhodes Launcher.app/Contents/Resources/rhorunner.app/" chdir "tmp" puts `zip ../rhodes-simulator.zip -r *` chdir $srcdir rm_rf "tmp" end end
Version data entries
76 entries across 76 versions & 1 rubygems