Sha256: 4db6464227bce3f4f07100c65fac7bfa19494790a4a26bcd970e9fb5d6f61310
Contents?: true
Size: 1.52 KB
Versions: 132
Compression:
Stored size: 1.52 KB
Contents
#!/usr/bin/env ruby require 'rubygems' require 'fileutils' include FileUtils puts File.dirname(__FILE__) appname = pwd.gsub(/\\/, "/").split("/")[-1] $app_config = YAML::load_file("build.yml") unless $app_config["env"].nil? #if env is here then it is an old app new_config = Hash.new new_config["sdk"] = File.expand_path(File.dirname(__FILE__) + "/../") new_config["name"] = appname new_config["version"] = $app_config["env"]["version"] new_config["vendor"] = $app_config["env"]["vendor"] new_config["bbver"] = $app_config["env"]["bbver"] new_config["applog"] = $app_config["env"]["applog"] new_config["iphone"] = Hash.new new_config["iphone"]["configuration"] = "Debug" new_config["iphone"]["sdk"] = "iphonesimulator3.0" new_config["iphone"]["codesignidentity"] = "" new_config["iphone"]["entitlements"] = "" $app_config = new_config File.open( 'build.yml', 'w' ) do |out| YAML.dump( $app_config, out ) end end unless File.exists? "icon/icon.png" mkdir_p "icon" unless File.exists? "icon" cp File.dirname(__FILE__) + '/../res/generators/templates/application/icon/icon.ico', 'icon/' cp File.dirname(__FILE__) + '/../res/generators/templates/application/icon/icon.png', 'icon/' end cp File.dirname(__FILE__) + '/../res/generators/templates/application/Rakefile', 'Rakefile' oldrhoconfig = IO.read("rhoconfig.txt") newrhoconfig = File.open("rhoconfig.txt","w") do |f| oldrhoconfig.each_line do |line| unless line =~ /^require/ line.gsub!(/Rho::RhoConfig\./,"") f.write line end end end
Version data entries
132 entries across 132 versions & 2 rubygems