From a41feff7a811c70ef781309e637cde446cb2cf7c Mon Sep 17 00:00:00 2001 From: liuyanfeng Date: Fri, 11 Oct 2024 23:50:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81android=20ios?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=8E=AF=E5=A2=83=E5=88=B6=E5=93=81=E5=8C=85?= =?UTF-8?q?=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/fastlane/Fastfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index ffe2e0ad..ca342711 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -90,6 +90,9 @@ platform :android do Dir.chdir "../.." do sh("flutter", "build", "apk", "--no-tree-shake-icons", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}_lite.dart", "--build-number=#{build_number}", "--build-name=#{build_version}") end + old_file_path = File.join($path_apk_output_dir, "app-#{flavor}-release.apk") + new_file_path = File.join($path_apk_output_dir, "app-starlock-release-#{flavor}-#{$current_tag}.apk") + File.rename(old_file_path, new_file_path) end lane :upload_file_to_pgy do |options|