diff --git a/build/archives/BUILD.gn b/build/archives/BUILD.gn index 7743e1ad911c8..90993ddb42793 100644 --- a/build/archives/BUILD.gn +++ b/build/archives/BUILD.gn @@ -300,3 +300,16 @@ if (is_mac) { ] } } + +if (host_os == "win") { + zip_bundle("archive_win_gen_snapshot") { + deps = [ "//flutter:gen_snapshot" ] + output = "$full_target_platform_name-$flutter_runtime_mode/windows-x64.zip" + files = [ + { + source = "$root_out_dir/gen_snapshot/gen_snapshot.exe" + destination = "gen_snapshot.exe" + }, + ] + } +} diff --git a/common/config.gni b/common/config.gni index affe61af22dad..afb8f0b2b2c92 100644 --- a/common/config.gni +++ b/common/config.gni @@ -132,4 +132,4 @@ if (flutter_prebuilt_dart_sdk) { # see https://github.com/flutter/flutter/issues/74322 build_engine_artifacts = current_toolchain == host_toolchain || - (is_linux && !is_chromeos && current_cpu != "arm") || is_mac + (is_linux && !is_chromeos && current_cpu != "arm") || is_mac || is_win