From 8fe7368fc49f66678dd4de4026c3bdeb52da69aa Mon Sep 17 00:00:00 2001 From: Kaushik Iska Date: Tue, 23 Jul 2019 21:31:18 -0700 Subject: [PATCH] [fuchsia] Use the new far package model (flutter/engine#10085) --- .../flutter/tools/fuchsia/build_fuchsia_artifacts.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py b/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py index 285fd81fae5..68abd1afa18 100755 --- a/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py +++ b/engine/src/flutter/tools/fuchsia/build_fuchsia_artifacts.py @@ -15,7 +15,7 @@ import subprocess import sys import tempfile -from gather_flutter_runner_artifacts import GatherArtifacts +from gather_flutter_runner_artifacts import CreateMetaPackage from gen_package import CreateFarPackage _script_dir = os.path.abspath(os.path.join(os.path.realpath(__file__), '..')) @@ -76,15 +76,13 @@ def RemoveDirectoryIfExists(path): def CopyToBucket(source, destination): - source = os.path.join(_out_dir, source) - temp_artifact_dir = tempfile.mkdtemp() - - GatherArtifacts(source, temp_artifact_dir) + source = os.path.join(_out_dir, source, 'flutter_jit_runner_far') + CreateMetaPackage(source) pm_bin = GetPMBinPath() key_path = os.path.join(_script_dir, 'development.key') destination = os.path.join(_bucket_directory, destination) - CreateFarPackage(pm_bin, temp_artifact_dir, key_path, destination) + CreateFarPackage(pm_bin, source, key_path, destination) def BuildBucket():