Преглед изворни кода

feat: 增加 fastlane 的打包配置

陈文艺 пре 4 месеци
родитељ
комит
aacf59fab5
5 измењених фајлова са 86 додато и 1 уклоњено
  1. 4 1
      .gitignore
  2. 4 0
      Gemfile
  3. 8 0
      fastlane/Appfile
  4. 38 0
      fastlane/Fastfile
  5. 32 0
      fastlane/README.md

+ 4 - 1
.gitignore

@@ -21,4 +21,7 @@ Pods/
 fastlane/report.xml
 fastlane/Preview.html
 fastlane/screenshots/**/*.png
-fastlane/test_output
+fastlane/test_output
+
+build/
+output/

+ 4 - 0
Gemfile

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

+ 8 - 0
fastlane/Appfile

@@ -0,0 +1,8 @@
+app_identifier("com.jiehe.lanu") # The bundle identifier of your app
+apple_id("mino_jenkins@126.com") # Your Apple Developer Portal username
+
+itc_team_id("126891508") # App Store Connect Team ID
+team_id("5H8D98R72W") # Developer Portal Team ID
+
+# For more information about the Appfile, see:
+#     https://docs.fastlane.tools/advanced/#appfile

+ 38 - 0
fastlane/Fastfile

@@ -0,0 +1,38 @@
+# 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 "Make a new beta build"
+  lane :beta do
+    increment_build_number(xcodeproj: "Lanu.xcodeproj")
+    cocoapods
+    build_app(
+      workspace: "Lanu.xcworkspace", 
+      export_method: "ad-hoc",
+      export_options: {
+        signingStyle: "automatic",
+        # provisioningProfiles: {
+        #   "com.jiehe.lanu" => "/Users/apple/Downloads/embedded.mobileprovision",
+        # }
+      },
+      clean: true,
+      output_directory: "output/", # Destination directory. Defaults to current directory.
+      derived_data_path: "build/", # Destination directory. Defaults to current directory.
+      scheme: "Lanu"
+      )
+  end
+end

+ 32 - 0
fastlane/README.md

@@ -0,0 +1,32 @@
+fastlane documentation
+----
+
+# Installation
+
+Make sure you have the latest version of the Xcode command line tools installed:
+
+```sh
+xcode-select --install
+```
+
+For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane)
+
+# Available Actions
+
+## iOS
+
+### ios beta
+
+```sh
+[bundle exec] fastlane ios beta
+```
+
+Make a new beta build
+
+----
+
+This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
+
+More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools).
+
+The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).