Font subset in the tool (#49737)
This commit is contained in:
@@ -62,6 +62,11 @@ ephemeral_dir="${SOURCE_ROOT}/Flutter/ephemeral"
|
||||
build_inputs_path="${ephemeral_dir}/FlutterInputs.xcfilelist"
|
||||
build_outputs_path="${ephemeral_dir}/FlutterOutputs.xcfilelist"
|
||||
|
||||
icon_tree_shaker_flag="false"
|
||||
if [[ -n "$TREE_SHAKE_ICONS" ]]; then
|
||||
icon_tree_shaker_flag="true"
|
||||
fi
|
||||
|
||||
RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics \
|
||||
${verbose_flag} \
|
||||
${flutter_engine_flag} \
|
||||
@@ -70,6 +75,7 @@ RunCommand "${FLUTTER_ROOT}/bin/flutter" --suppress-analytics \
|
||||
-dTargetPlatform=darwin-x64 \
|
||||
-dTargetFile="${target_path}" \
|
||||
-dBuildMode="${build_mode}" \
|
||||
-dFontSubset="${icon_tree_shaker_flag}" \
|
||||
--build-inputs="${build_inputs_path}" \
|
||||
--build-outputs="${build_outputs_path}" \
|
||||
--output="${ephemeral_dir}" \
|
||||
|
||||
Reference in New Issue
Block a user