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

Version Path
rhodes-2.2.3.beta.1 bin/upgrade-rhodes-app
rhodes-2.2.2 bin/upgrade-rhodes-app
rhodes-2.2.2.beta.1 bin/upgrade-rhodes-app
rhodes-2.2.1 bin/upgrade-rhodes-app
rhodes-2.2.1.beta.2 bin/upgrade-rhodes-app
rhodes-2.2.1.beta.1 bin/upgrade-rhodes-app
rhodes-2.2.0 bin/upgrade-rhodes-app
rhodes-2.2.0.beta.3 bin/upgrade-rhodes-app
rhodes-2.2.0.beta.2 bin/upgrade-rhodes-app
rhodes-2.2.0.beta.1 bin/upgrade-rhodes-app
rhodes-2.1.0 bin/upgrade-rhodes-app
rhodes-2.0.3 bin/upgrade-rhodes-app
rhodes-2.0.2 bin/upgrade-rhodes-app
rhodes-2.0.0 bin/upgrade-rhodes-app
rhodes-2.0.0.rc2 bin/upgrade-rhodes-app
rhodes-2.0.0.rc1 bin/upgrade-rhodes-app
rhodes-2.0.0.beta11 bin/upgrade-rhodes-app
rhodes-2.0.0.beta10 bin/upgrade-rhodes-app
rhodes-2.0.0.beta9 bin/upgrade-rhodes-app
rhodes-2.0.0.beta8 bin/upgrade-rhodes-app