Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "Spaceship"
- file = 'RemoteBuildNumber'
- user = ARGV[0]
- pass = ARGV[1]
- appid = ARGV[2]
- version = ARGV[3]
- File.delete(file) if File.exist?(file)
- Spaceship::Tunes.login(user, pass)
- app = Spaceship::Tunes::Application.find(appid)
- train = app.build_trains[version]
- build = train.first # Array first is the last new build
- File.write(file, build.build_version)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement