From 9952298773c8a46066a5fbdc28aa5d80994a1dbf Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Thu, 2 Feb 2023 20:03:23 -0800 Subject: [PATCH 1/2] Add gen_snapshot to windows flutter artifact. This file was missing on release and profile versions. Bug: https://github.com/flutter/flutter/issues/119887 --- build/archives/BUILD.gn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/archives/BUILD.gn b/build/archives/BUILD.gn index 0d0fd4f51287c..57bd5c7533f2a 100644 --- a/build/archives/BUILD.gn +++ b/build/archives/BUILD.gn @@ -232,6 +232,7 @@ if (host_os == "win") { "//flutter/shell/platform/common:publish_headers", "//flutter/shell/platform/windows:flutter_windows", "//flutter/shell/platform/windows:publish_headers_windows", + "//flutter:gen_snapshot" ] files = [ { @@ -270,6 +271,10 @@ if (host_os == "win") { source = "$root_out_dir/flutter_windows.dll.pdb" destination = "flutter_windows.dll.pdb" }, + { + source = "$root_out_dir/gen_snapshot/gen_snapshot.exe" + destination = "gen_snapshot.exe" + }, ] } } From 613f2ed722f1ab71f6f7c10a303a2f70a685e8d2 Mon Sep 17 00:00:00 2001 From: Godofredo Contreras Date: Thu, 2 Feb 2023 20:59:17 -0800 Subject: [PATCH 2/2] Format gn file. --- build/archives/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/archives/BUILD.gn b/build/archives/BUILD.gn index 57bd5c7533f2a..49097396468f1 100644 --- a/build/archives/BUILD.gn +++ b/build/archives/BUILD.gn @@ -229,10 +229,10 @@ if (host_os == "win") { zip_bundle("windows_flutter") { output = "$full_target_platform_name-$flutter_runtime_mode/$full_target_platform_name-flutter.zip" deps = [ + "//flutter:gen_snapshot", "//flutter/shell/platform/common:publish_headers", "//flutter/shell/platform/windows:flutter_windows", "//flutter/shell/platform/windows:publish_headers_windows", - "//flutter:gen_snapshot" ] files = [ {