刘星辰 3 сар өмнө
parent
commit
e82252b7b3

+ 3 - 0
HBuilder-uniPluginDemo/Gemfile

@@ -0,0 +1,3 @@
+source "https://rubygems.org"
+
+gem "fastlane"

+ 6 - 0
HBuilder-uniPluginDemo/fastlane/Appfile

@@ -0,0 +1,6 @@
+# app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
+# apple_id("[[APPLE_ID]]") # Your Apple Developer Portal username
+
+
+# For more information about the Appfile, see:
+#     https://docs.fastlane.tools/advanced/#appfile

+ 46 - 0
HBuilder-uniPluginDemo/fastlane/Fastfile

@@ -0,0 +1,46 @@
+# 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 "Description of what the lane does"
+  lane :custom_lane do
+    # add actions here: https://docs.fastlane.tools/actions
+  end
+
+desc "打包到pgy"
+lane :beta do |options|
+  gym(
+    clean: true, # 打包前clean项目
+    export_method: "development", # 导出方式
+    scheme: "PBSDK_Example", # scheme
+    output_directory: "~/Desktop/PB", # ipa的存放目录
+    silent: true, # 隐藏没有必要的信息
+    export_options: {
+        provisioningProfiles: {
+            "com.hongyi.sports" => "Sports_appStore_dev"
+        },
+        signingCertificate: "Apple Development",
+        signingStyle: "manual",
+        teamID: "5UR7UXG257",
+        thinning: "<none>",
+        stripSwiftSymbols: true
+    }
+  )
+  #蒲公英的配置 替换为自己的api_key和user_key
+  #pgyer(api_key: "f5ebb7c9149d32eaf2299fcb64cc78d5", user_key: "b68400db450088ba426d5556a313c60e",update_description: options[:desc])
+  end
+end