Sha256: a339f1c454f87cef5766034bab11dc82fddf2a87fb417c6a84efcef6d6b9bbd2

Contents?: true

Size: 1.37 KB

Versions: 133

Compression:

Stored size: 1.37 KB

Contents

    require 'Find'
    require 'fileutils'
    include FileUtils

    chdir File.dirname(__FILE__)

    $homedir = `echo ~`.to_s.strip
    $simapp="#{$homedir}/Library/Application Support/iPhone Simulator/User/Applications"
    $simlink="#{$homedir}/Library/Application Support/iPhone Simulator/User/Library/Preferences"
    $sim="/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications"
    $guid="364FFCAF-C71D-4543-B293-9058E31CFFEE"
    $applog = File.join($homedir,"rholog.txt")

     `killall "iPhone Simulator"`


     Find.find($simapp) do |path|
       if File.basename(path) == "rhorunner.app"
         $guid = File.basename(File.dirname(path))
       end
     end

     simrhodes = File.join($simapp,$guid)
     rm_rf simrhodes

     mkdir_p File.join(simrhodes,"Documents")
     mkdir_p File.join(simrhodes,"Library","Preferences")

     puts `cp -R -p "rhorunner.app" "#{simrhodes}"`
     puts `ln -f -s "#{$simlink}/com.apple.PeoplePicker.plist" "#{simrhodes}/Library/Preferences/com.apple.PeoplePicker.plist"`
     puts `ln -f -s "#{$simlink}/.GlobalPreferences.plist" "#{simrhodes}/Library/Preferences/.GlobalPreferences.plist"`

     puts `echo "#{$applog}" > "#{simrhodes}/Documents/rhologpath.txt"`

     f = File.new("#{$simapp}/#{$guid}.sb","w")
     f << "(version 1)\n(debug deny)\n(allow default)\n"
     f.close

     system("open \"#{$sim}/iPhone Simulator.app\"")

Version data entries

133 entries across 133 versions & 2 rubygems

Version Path
rhodes-7.6.0 platform/osx/Rhodes Launcher/launch.rb
rhodes-7.5.1 platform/osx/Rhodes Launcher/launch.rb
rhodes-7.4.1 platform/osx/Rhodes Launcher/launch.rb
rhodes-7.1.17 platform/osx/Rhodes Launcher/launch.rb
rhodes-6.2.0 platform/osx/Rhodes Launcher/launch.rb
rhodes-6.0.11 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.18 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.17 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.15 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.0.22 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.2 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.0.7 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.0.3 platform/osx/Rhodes Launcher/launch.rb
rhodes-5.5.0 platform/osx/Rhodes Launcher/launch.rb
tauplatform-1.0.3 platform/osx/Rhodes Launcher/launch.rb
tauplatform-1.0.2 platform/osx/Rhodes Launcher/launch.rb
tauplatform-1.0.1 platform/osx/Rhodes Launcher/launch.rb
rhodes-3.5.1.12 platform/osx/Rhodes Launcher/launch.rb
rhodes-3.3.5 platform/osx/Rhodes Launcher/launch.rb
rhodes-3.4.2 platform/osx/Rhodes Launcher/launch.rb