瀏覽代碼

Zip the xcframework folder to allow tool find artifact directly

onevcat 1 年之前
父節點
當前提交
d7139a8f20
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      fastlane/Fastfile

+ 4 - 2
fastlane/Fastfile

@@ -140,15 +140,17 @@ platform :ios do
         "Kingfisher-#{output_name}-#{version}"
       end
       
+      output_xcframework_path = "build/#{output_base_name}/Kingfisher.xcframework"
+
       create_xcframework(
         frameworks_with_dsyms: frameworks,
-        output: "build/#{output_base_name}/Kingfisher.xcframework"
+        output: output_xcframework_path
       )
 
       Actions.sh("codesign --timestamp -v --sign 'Apple Distribution: Wei Wang (A4YJ9MRZ66)' ../build/#{output_base_name}/Kingfisher.xcframework")
 
       zip(
-        path: "build/#{output_base_name}",
+        path: output_xcframework_path,
         output_path: "build/#{output_base_name}.xcframework.zip",
         symlinks: true
       )