From fce2df706a0f714190cd3687a58decc8b4b3c894 Mon Sep 17 00:00:00 2001 From: godofredoc Date: Fri, 6 May 2022 10:29:04 -0700 Subject: [PATCH] Fix fonts and artifacts paths. (flutter/engine#33160) --- engine/src/flutter/build/archives/BUILD.gn | 2 +- engine/src/flutter/tools/font-subset/BUILD.gn | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/build/archives/BUILD.gn b/engine/src/flutter/build/archives/BUILD.gn index df806d1068..2bfa95ed09 100644 --- a/engine/src/flutter/build/archives/BUILD.gn +++ b/engine/src/flutter/build/archives/BUILD.gn @@ -14,7 +14,7 @@ if (build_engine_artifacts) { "//flutter/lib/snapshot:generate_snapshot_bin", "//flutter/shell/testing:testing", ] - prefix = "$full_platform_name/" + prefix = "$full_target_platform_name/" if (flutter_runtime_mode != "debug") { prefix = "$full_platform_name-$flutter_runtime_mode/" } diff --git a/engine/src/flutter/tools/font-subset/BUILD.gn b/engine/src/flutter/tools/font-subset/BUILD.gn index ef647fff57..6399e0f53a 100644 --- a/engine/src/flutter/tools/font-subset/BUILD.gn +++ b/engine/src/flutter/tools/font-subset/BUILD.gn @@ -41,7 +41,13 @@ generated_file("_font-subset-license") { } zip_bundle("font-subset") { - output = "${full_platform_name}/font-subset.zip" + if (is_mac) { + # Mac artifacts sometimes use mac and sometimes darwin. Standardizing the + # names will require changes in the list of artifacts the tool is downloading. + output = "darwin-${target_cpu}/font-subset.zip" + } else { + output = "${full_target_platform_name}/font-subset.zip" + } font_subset_bin = "font-subset" if (is_win) {