123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- # This file contains the fastlane.tools configuration
- # You can find the documentation at https://docs.fastlane.tools
- #
- # For a list of all available actions, check out
- #
- # https://docs.fastlane.tools/actions
- #
- # For a list of all available plugins, check out
- #
- # https://docs.fastlane.tools/plugins/available-plugins
- #
- # Uncomment the line if you want fastlane to automatically update itself
- # update_fastlane
- default_platform(:ios)
- platform :ios do
- desc "测试环境上传到蒲公英"
- # 打包时候用的名称 例如 fastlane app
- lane :dev do
- # add actions here: https://docs.fastlane.tools/actions
- gym(
- # 每次打包之前clean一下
- clean: true,
- # 打包出 ipa 文件的路径,我放到了桌面文件夹,你自行更改文件夹
- output_directory: '/Volumes/Data/IPA/TestIPA/'++ Time.new.strftime("%Y-%m-%d %H-%M-%S"),
- # 打包的名称,可任意取
- output_name: 'FulltimeEmployer',
- # 项目包含iCloud指定环境 Development 或者 Production
- #export_options:{
- # "iCloudContainerEnvironment":"Development"
- #},
- # 项目的 scheme,自己项目名 target名称
- scheme: "Runner",
- # 默认 Release,Release or Debug
- configuration: 'Release',
- # 是否包含 bitcode
- include_bitcode: false,
- # 是否包含 symbols
- include_symbols: true,
- # 打包导出方式,包含 app-store, validation, ad-hoc, package, enterprise, development, developer-id and mac-application
- export_method: 'development',
- # 这个设置是为了设置 xcode 自动配置证书和配置文件,当然也可以手动配置,可以参考文档
- export_xcargs: '-allowProvisioningUpdates'
- )
- #配置上传蒲公英账号 蒲公英的 api_key和 user_key
- pgyer(api_key:'12345678', update_description: "fastlane自动打包")
- # mac上的通知弹窗,通知打包完毕
- notification(app_icon: "./fastlane/icon.png", title: "manager", subtitle: "测试环境打包成功,已导出安装包", message: "")
- end
- end
|