未验证 提交 d8c9b102 编写于 作者: K Kaushik Iska 提交者: GitHub

[fucshia] fix name to reflect the cmx file (#10151)

* [fucshia] fix name to reflect the cmx file

* uncomment
上级 33887816
......@@ -86,12 +86,13 @@ def CopyFiles(source, destination):
def CopyToBucket(source, destination, product=False):
far_dir = 'flutter_jit_runner_far'
runner_name = 'flutter_jit_runner'
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 = os.path.join(source_root, far_dir)
CreateMetaPackage(source)
CreateMetaPackage(source, runner_name)
pm_bin = GetPMBinPath()
key_path = os.path.join(_script_dir, 'development.key')
......
......@@ -40,13 +40,13 @@ def CopyPath(src, dst):
raise
def CreateMetaPackage(dst_root):
def CreateMetaPackage(dst_root, far_name):
meta = os.path.join(dst_root, 'meta')
if not os.path.isdir(meta):
os.makedirs(meta)
content = {}
content['name'] = 'flutter_runner'
content['version'] = '0.0.1'
content['name'] = far_name
content['version'] = '0'
package = os.path.join(meta, 'package')
with open(package, 'w') as 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)
if create_meta_package:
CreateMetaPackage(dst_root)
CreateMetaPackage(dst_root, 'flutter_runner')
def main():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册