feat: 支持android ios不同环境制品包构建
This commit is contained in:
parent
cfad7de35e
commit
f2d1efacc0
@ -88,7 +88,7 @@ platform :android do
|
||||
short_hash = commit_hash[:abbreviated_commit_hash]
|
||||
print_log "last_git_commit_short_hash #{short_hash}"
|
||||
Dir.chdir "../.." do
|
||||
sh("flutter", "build", "apk", "--no-tree-shake-icons", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}.dart", "--build-number=#{build_number}", "--build-name=#{build_version}")
|
||||
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
|
||||
end
|
||||
|
||||
|
||||
@ -129,7 +129,7 @@ platform :ios do
|
||||
short_hash = commit_hash[:abbreviated_commit_hash]
|
||||
print_log "last_git_commit_short_hash #{short_hash}"
|
||||
Dir.chdir "../.." do
|
||||
sh("flutter", "build", "ios", "--no-tree-shake-icons", "--no-codesign", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}.dart", "--build-number=#{build_number}", "--build-name=#{build_version}")
|
||||
sh("flutter", "build", "ios", "--no-tree-shake-icons", "--no-codesign", "--release", "--flavor", "#{flavor}", "-t", "lib/main_#{flavor}_lite.dart", "--build-number=#{build_number}", "--build-name=#{build_version}")
|
||||
end
|
||||
gym_scheme_release="#{flavor}"
|
||||
print_log "gym_scheme_release #{gym_scheme_release}"
|
||||
|
||||
8
lib/main_sky_dev.dart
Normal file
8
lib/main_sky_dev.dart
Normal file
@ -0,0 +1,8 @@
|
||||
import 'flavors.dart';
|
||||
|
||||
import 'main.dart' as runner;
|
||||
|
||||
Future<void> main() async {
|
||||
F.appFlavor = Flavor.sky_dev;
|
||||
await runner.main();
|
||||
}
|
||||
8
lib/main_sky_pre.dart
Normal file
8
lib/main_sky_pre.dart
Normal file
@ -0,0 +1,8 @@
|
||||
import 'flavors.dart';
|
||||
|
||||
import 'main.dart' as runner;
|
||||
|
||||
Future<void> main() async {
|
||||
F.appFlavor = Flavor.sky_pre;
|
||||
await runner.main();
|
||||
}
|
||||
8
lib/main_xhj_dev.dart
Normal file
8
lib/main_xhj_dev.dart
Normal file
@ -0,0 +1,8 @@
|
||||
import 'flavors.dart';
|
||||
|
||||
import 'main.dart' as runner;
|
||||
|
||||
Future<void> main() async {
|
||||
F.appFlavor = Flavor.xhj_dev;
|
||||
await runner.main();
|
||||
}
|
||||
8
lib/main_xhj_pre.dart
Normal file
8
lib/main_xhj_pre.dart
Normal file
@ -0,0 +1,8 @@
|
||||
import 'flavors.dart';
|
||||
|
||||
import 'main.dart' as runner;
|
||||
|
||||
Future<void> main() async {
|
||||
F.appFlavor = Flavor.xhj_pre;
|
||||
await runner.main();
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user