| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 | 
							- # 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 "酷乐秀自动化打包"
 
-   lane :Colexiu  do
 
-     time = Time.new.strftime("%Y%m%d") #获取时间格式
 
-     version = get_version_number #获取版本号
 
-     ipaName = "酷乐秀#{version}_#{time}.ipa"
 
-     scheme = "KulexiuForStudent"  # 项目的 scheme,自己项目名
 
-     # add actions here: https://docs.fastlane.tools/actions
 
- # 开始打包
 
-   build_app(
 
-   clean: true,    # 每次打包之前clean一下
 
-   workspace: "KulexiuForStudent.xcworkspace", # 指定工程文件
 
-   export_method: 'development',  # 打包导出方式,包含 app-store, validation, ad-hoc, package,enterprise, development, developer-id and mac-application
 
-   export_xcargs: '-allowProvisioningUpdates', # 这个设置是为了设置 xcode 自动配置证书和配置文件,当然也可以手动配置,可以参考文档
 
-   configuration: 'Debug',   # 默认 Release,Release or Debug
 
-   silent: true, # 隐藏构建app时输出的不必要的信息
 
-   output_directory: '/Users/wangzhi/Desktop/Archive/Debug',  # 打包出 ipa 文件的路径   output_name:"#{ipaName}", # 打包的名称,可任意取
 
- )
 
- #配置上传蒲公英账号  蒲公英的 api_key和 user_key  
 
-     pgyer(api_key:'b4f2e606f6a6ffd71f5368fc9af634ea', user_key: 'fca8034bee3a119cbbe9ccd81141b8e7')
 
-     # mac上的通知弹窗,通知打包完毕
 
-     notification(app_icon: './fastlane/icon.png', title: 'manager', subtitle: '打包成功,已导出安装包', message: '准备发布中……')
 
-     
 
-     # 通知上传成功
 
-     notification(app_icon:"icon.png",title:"LoanManager",subtitle: "IPA上传成功", message: "自动打包完成!")
 
-   end
 
- end
 
 
  |