Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 2.0.0.beta2
Fetching contributors…

Cannot retrieve contributors at this time

executable file 49 lines (40 sloc) 1.56 kB
#!/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
Jump to Line
Something went wrong with that request. Please try again.