我一直在使用 faSTLane 将应用程序上传到曲棍球和 testflight。
我也想用于 S3 并检查他们的文档。我对S3的了解有限。
https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md
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.
ipa: 'AppName.ipa', # Optional is you use `ipa` to build
dsym: 'AppName.app.dSYM.zip', # Optional is you use `ipa` to build
path: 'v{CFBundleShortVersionString}_b{CFBundleVersion}/', # This is actually the default.
upload_metadata: true, # Upload version.json, plist and HTML. Set to false to skip uploading of these files.
version_file_name: 'app_version.json', # Name of the file to upload to S3. Defaults to 'version.json'
version_template_path: 'path/to/erb' # Path to an ERB to configure the structure of the version JSON file
)
如果我需要上传到/Main/bin/Dev,我的存储桶将是 Main。但是我在哪里以及如何描述我的路径?它在这里(路径:) 吗?
他们说
It is recommended to not store the AWS access keys in the Fastfile.
如果是这样,我可以将 AWS 访问 key 放在哪里?它仍将位于其中一个文本文件中,并将提交到 svn 或 git。
最佳答案
想法是将其存储在环境变量中,通常人们使用.env为了那个原因。确保不提交 .版本控制中的文件。
关于ios - 使用 faSTLane 上传到 S3,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39157644/