Fastfile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # This file contains the fastlane.tools configuration
  2. # You can find the documentation at https://docs.fastlane.tools
  3. #
  4. # For a list of all available actions, check out
  5. #
  6. # https://docs.fastlane.tools/actions
  7. #
  8. # For a list of all available plugins, check out
  9. #
  10. # https://docs.fastlane.tools/plugins/available-plugins
  11. #
  12. # Uncomment the line if you want fastlane to automatically update itself
  13. # update_fastlane
  14. default_platform(:ios)
  15. platform :ios do
  16. desc "Description of what the lane does"
  17. lane :custom_lane do
  18. # add actions here: https://docs.fastlane.tools/actions
  19. end
  20. desc "打包到pgy"
  21. lane :beta do |options|
  22. gym(
  23. clean: true, # 打包前clean项目
  24. export_method: "development", # 导出方式
  25. scheme: "HBuilder", # scheme
  26. output_directory: "~/Desktop/PB", # ipa的存放目录
  27. silent: true, # 隐藏没有必要的信息
  28. export_options: {
  29. provisioningProfiles: {
  30. "com.hongyi.sports" => "Sports_appStore_dev"
  31. },
  32. signingCertificate: "Apple Development",
  33. signingStyle: "manual",
  34. teamID: "5UR7UXG257",
  35. thinning: "<none>",
  36. stripSwiftSymbols: true
  37. }
  38. )
  39. #蒲公英的配置 替换为自己的api_key和user_key
  40. #pgyer(api_key: "f5ebb7c9149d32eaf2299fcb64cc78d5", user_key: "b68400db450088ba426d5556a313c60e",update_description: options[:desc])
  41. end
  42. end