[fucshia] fix name to reflect the cmx file (flutter/engine#10151)
* [fucshia] fix name to reflect the cmx file * uncomment
This commit is contained in:
@@ -86,12 +86,13 @@ def CopyFiles(source, destination):
|
|||||||
|
|
||||||
|
|
||||||
def CopyToBucket(source, destination, product=False):
|
def CopyToBucket(source, destination, product=False):
|
||||||
far_dir = 'flutter_jit_runner_far'
|
runner_name = 'flutter_jit_runner'
|
||||||
if product:
|
if product:
|
||||||
far_dir = 'flutter_jit_product_runner_far'
|
runner_name = 'flutter_jit_product_runner'
|
||||||
|
far_dir = '%s_far' % runner_name
|
||||||
source_root = os.path.join(_out_dir, source)
|
source_root = os.path.join(_out_dir, source)
|
||||||
source = os.path.join(source_root, far_dir)
|
source = os.path.join(source_root, far_dir)
|
||||||
CreateMetaPackage(source)
|
CreateMetaPackage(source, runner_name)
|
||||||
pm_bin = GetPMBinPath()
|
pm_bin = GetPMBinPath()
|
||||||
key_path = os.path.join(_script_dir, 'development.key')
|
key_path = os.path.join(_script_dir, 'development.key')
|
||||||
|
|
||||||
|
|||||||
@@ -40,13 +40,13 @@ def CopyPath(src, dst):
|
|||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
||||||
def CreateMetaPackage(dst_root):
|
def CreateMetaPackage(dst_root, far_name):
|
||||||
meta = os.path.join(dst_root, 'meta')
|
meta = os.path.join(dst_root, 'meta')
|
||||||
if not os.path.isdir(meta):
|
if not os.path.isdir(meta):
|
||||||
os.makedirs(meta)
|
os.makedirs(meta)
|
||||||
content = {}
|
content = {}
|
||||||
content['name'] = 'flutter_runner'
|
content['name'] = far_name
|
||||||
content['version'] = '0.0.1'
|
content['version'] = '0'
|
||||||
package = os.path.join(meta, 'package')
|
package = os.path.join(meta, 'package')
|
||||||
with open(package, 'w') as out_file:
|
with open(package, 'w') as out_file:
|
||||||
json.dump(content, out_file)
|
json.dump(content, out_file)
|
||||||
@@ -67,7 +67,7 @@ def GatherArtifacts(src_root, dst_root, create_meta_package=True):
|
|||||||
CopyPath(src_full, dst_full)
|
CopyPath(src_full, dst_full)
|
||||||
|
|
||||||
if create_meta_package:
|
if create_meta_package:
|
||||||
CreateMetaPackage(dst_root)
|
CreateMetaPackage(dst_root, 'flutter_runner')
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|||||||
Reference in New Issue
Block a user