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) {