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-7.6.0 bin/upgrade-rhodes-app
rhodes-7.5.1 bin/upgrade-rhodes-app
rhodes-7.4.1 bin/upgrade-rhodes-app
rhodes-7.1.17 bin/upgrade-rhodes-app
rhodes-6.2.0 bin/upgrade-rhodes-app
rhodes-6.0.11 bin/upgrade-rhodes-app
rhodes-5.5.18 bin/upgrade-rhodes-app
rhodes-5.5.17 bin/upgrade-rhodes-app
rhodes-5.5.15 bin/upgrade-rhodes-app
rhodes-5.5.0.22 bin/upgrade-rhodes-app
rhodes-5.5.2 bin/upgrade-rhodes-app
rhodes-5.5.0.7 bin/upgrade-rhodes-app
rhodes-5.5.0.3 bin/upgrade-rhodes-app
rhodes-5.5.0 bin/upgrade-rhodes-app
tauplatform-1.0.3 bin/upgrade-tau-app
tauplatform-1.0.2 bin/upgrade-tau-app
tauplatform-1.0.1 bin/upgrade-tau-app
rhodes-3.5.1.12 bin/upgrade-rhodes-app
rhodes-3.3.5 bin/upgrade-rhodes-app
rhodes-3.4.2 bin/upgrade-rhodes-app