From 1ecfb86855283b3d7a73cd18cf53fd568722f91e Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Fri, 3 Jun 2022 18:44:19 -0700 Subject: [PATCH] Use darwin rather than mac for dart_sdk artifacts. All the platforms except mac use the platform name but mac uses darwin instead. --- build/archives/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/archives/BUILD.gn b/build/archives/BUILD.gn index d751a6fe4f676..757f13e0c0548 100644 --- a/build/archives/BUILD.gn +++ b/build/archives/BUILD.gn @@ -107,6 +107,11 @@ if (build_engine_artifacts && flutter_prebuilt_dart_sdk) { zip_bundle("dart_sdk_archive") { deps = [] output = "dart-sdk-$full_target_platform_name.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 = "dart-sdk-darwin-$target_cpu.zip" + } files = [ { source = prebuilt_dart_sdk