Name: ipa_install_plist_generator
Owner: Bitrise
Description: Generates a .plist which can be used for an IPA install & can generate an install link for the .plist file
Created: 2015-02-06 15:34:12.0
Updated: 2016-06-11 17:24:48.0
Pushed: 2015-03-03 21:01:11.0
Size: 168
Language: Ruby
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Ruby GEM to generate a .plist which can be used for an IPA install.
This GEM can be used in your Ruby project directly or you can install it and use it in your Command Line / Terminal.
You can use this GEM by adding it to your Gemfile:
gem 'ipa_install_plist_generator'
Or install it as a system-wide GEM / CLI:
gem install ipa_install_plist_generator
You can use this GEM as a CLI in two modes:
ipa_plist_gen
command in your Command Line / Terminal.ipa_install_link_gen
command in your Command Line / Terminal.To generate a .plist file you can call the gem from your Command Line / Terminal:
$ ipa_plist_gen -i 'https://my-server/ipa-path.ipa' -b 'bundle.id' -t 'App Title'
This will print the .plist file to the standard output, you can redirect it to save it to a file or just copy-paste it into a .plist file.
At the moment a valid install .plist file have to contain the .ipa file's download url, a bundle ID and the app's title. You can define additional information if you want to.
Calling the ipa_plist_gen
with every parameter looks like this:
$ ipa_plist_gen -i 'https://my-server/ipa-path.ipa' -b 'bundle.id' -t 'App Title' --bundle-version '1.0.0' --display-image 'disp.img' --full-size-image 'full.img'
And it generated the .plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>assets</key>
<array>
<dict>
<key>kind</key>
<string>software-package</string>
<key>url</key>
<string>https://my-server/ipa-path.ipa</string>
</dict>
<dict>
<key>kind</key>
<string>display-image</string>
<key>needs-shine</key>
<false/>
<key>url</key>
<string>disp.img</string>
</dict>
<dict>
<key>kind</key>
<string>full-size-image</string>
<key>needs-shine</key>
<false/>
<key>url</key>
<string>full.img</string>
</dict>
</array>
<key>metadata</key>
<dict>
<key>bundle-identifier</key>
<string>bundle.id</string>
<key>bundle-version</key>
<string>1.0.0</string>
<key>kind</key>
<string>software</string>
<key>title</key>
<string>App Title</string>
</dict>
</dict>
</array>
</dict>
</plist>
Once you uploaded this .plist file to your server you can generate the special itms-services
link in the Command Line / Terminal:
$ ipa_install_link_gen -l 'https://my-server/install.plist'