Last active
August 29, 2015 14:15
-
-
Save joshdholtz/f38b512a1cb9a5792653 to your computer and use it in GitHub Desktop.
S3Action :: diff > https://github.com/joshdholtz/fastlane/compare/s3-action, page > https://fastlane-test-bucket.s3.amazonaws.com/tehetehe.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Had to use Fastfile.rb ^^ so that Github would keep it Ruby highlighted :( | |
# S3 Directory Structurer | |
# | |
# - fastlane-test-bucket | |
# - tehetehe.html | |
# - v0.9.0_b20 | |
# - SnapifeyePro.app.dSYM.zip | |
# - SnapifeyePro.ipa | |
# - SnapifeyePro.plist | |
lane :do_s3_could_be_this_easy do | |
# When paired with IpaAction and ENV settings | |
s3({}) | |
end | |
lane :do_s3_should_be_this_easy do | |
# When paired with IpaAction | |
s3({ | |
access_key: ENV['S3_ACCESS_KEY'] | |
secret_access_key: ENV['S3_SECRET_ACCESS_KEY'] | |
bucket: ENV['S3_BUCKET'] | |
}) | |
end | |
lane :do_s3_all_the_things do | |
s3({ | |
# All of these are used to make Shenzhen's `ipa distribute:s3` command | |
access_key: ENV['S3_ACCESS_KEY'], # Required from user | |
secret_access_key: ENV['S3_SECRET_ACCESS_KEY'], # Required from user | |
bucket: ENV['S3_BUCKET'], # Required from user | |
file: 'SnapifeyePro.ipa', # This would come from IpaAction | |
dsym: 'SnapifeyePro.app.dSYM.zip', # This would come from IpaAction | |
path: 'v{CFBundleShortVersionString}_b{CFBundleVersion}/', # This would be default to something pretty | |
# These are optional used to the plist and html file uploaded to S3 | |
# Templates default to packaged ones in the gem | |
# HTML file name defaults to 'index.html' | |
plist_template_path: "/Users/josh/Projects/fastlane/lib/assets/s3_plist_template.erb", | |
html_template_path: "/Users/josh/Projects/fastlane/lib/assets/s3_html_template.erb", | |
html_file_name: "tehetehe.html" | |
}) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Maybe this proves helpful: https://github.com/bitrise-io/ipa_install_plist_generator
The API looks great. Do you need my
.html.erb
file to generate a installation page?