This project is a fastlane plugin. To get started with fastlane-plugin-fir_cli
, add it to your project by running:
fastlane add_plugin fir_cli
Using fir-cli gem, upload ipa or apk to fir.im in fastlane directly.
内置 fir-cli 这个gem, 直接在fastlane 中直接将文件上传到 fir.im
run fastlane action fir_cli
in terminal to lookup the details.
在命令行中运行 fastlane action fir_cli
查看细节.
+-------------------------+------------------------------------------+-----------------------------+---------+
| fir_cli Options |
+-------------------------+------------------------------------------+-----------------------------+---------+
| Key | Description | Env Var | Default |
+-------------------------+------------------------------------------+-----------------------------+---------+
| api_token | A description of your option | FIR_CLI_API_TOKEN | |
| specify_file_path | FILE APP PATH | FIR_SPECIFY_FILE_PATH | |
| short | fir short | FIR_APP_SHORT | |
| force_pin_history | pin this release to download page | FIR_APP_FORCE_PIN_HISTORY | false |
| skip_update_icon | skip upload icon | FIR_APP_SKIP_UPDATE_ICON | false |
| specify_icon_file | APP ICON FILE PATH | FIR_SPECIFY_ICON_FILE_PATH | |
| changelog | changelog path or content | FIR_APP_CHANGELOG | |
| open | true/false if open for everyone | FIR_APP_OPEN | true |
| password | Set password for app | FIR_APP_PASSWORD | |
| switch_to_qiniu | switch to qiniu upload | FIR_SWITCH_TO_QINIU | false |
| need_release_id | would build download url with release id | FIR_NEED_RELEASE_ID | false |
| dingtalk_access_token | dingtalk_access_token | FIR_DINGTALK_ACCESS_TOKEN | |
| dingtalk_custom_message | dingtalk custom message | FIR_DINGTALK_CUSTOM_MESSAGE | |
+-------------------------+------------------------------------------+-----------------------------+---------+
run fir_plugin in Fastfile
在 Fastfile 文件中 引入
default_platform(:ios)
platform :ios do
lane :gofir do
gym export_method: "ad-hoc"
# 多个参数 可以使用逗号(, )分离
fir_cli api_token: "YOUR FIR API TOKEN", changelog: "Hello fir.im"
end
end
# run `fastlane gofir` in terminal to start lane gofir
run fir plugin in bash
在终端跑这个插件
fastlane run fir_cli api_token:"YOUR_FIR_API_TOKEN" specify_file_path:"YOUR IPA OR APK FILE PATH"
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Thanks!
感谢鼓励作者维护!
For more information about how the fastlane
plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.