Just like motion-testflight and motion-hockeyapp, motion-installr is a gem to make it easy to configure your application for ad-hoc distribution, but unlike the overly complicated TestFlight and HockeyApp, everything is super easy with Installr. Also I'm not being paid to run this, I just really like Installr.
Add this line to your RubyMotion app's Gemfile:
And then execute:
Or install it yourself as:
$ gem install motion-installr
And require it in your Rakefile:
Once you've got it installed, you're going to need a account with Installr, so head on over and sign up for one of their free plans that lets you share with 1-5 testers.
With your account set up, you're going to need 3 things. A distribution certificate and provisioning profile, which you can create in the iOS dev center, and to find your Installr API key, which you can generate and copy from 'My Account' on the Installr website.
For instructions on setting up your certificates and profiles, watch Episode 22 of MotionInMotion - "Distribute your RubyMotion apps with TestFlight and HockeyApp".
Now for the super easy part.
Inside of your setup block in your Rakefile, configure the following.
Motion::Project::App.setup do |app| # ... app.installrapp do app.codesign_certificate = 'iPhone Distribution: Jane Doe (S0M3T3AM1D)' app.provisioning_profile = '/path/to/your/provisioning/profile.mobileprovision' app.entitlements['get-task-allow'] = false app.installr_api_token = 'YOUR API TOKEN HERE' end # ... end
Super simple, just set these four settings.
Now you can run
rake installr notes="My Release Notes" to push a build to Installr and then invite your testers.
notes="My Release Notes" is just an environment variable, so you can just write a bash script to set the notes variable and keep track of your notes in there, I show you show to do this in Episode 22 as well.
- Fork it ( http://github.com/FluffyJack/motion-installr/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request