Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
sxychenjing
engine
提交
69e0800c
E
engine
项目概览
sxychenjing
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
69e0800c
编写于
7月 26, 2019
作者:
K
Kaushik Iska
提交者:
GitHub
7月 26, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[fuchsia] Artifacts now contain gen_snapshot and gen_snapshot_product (#10188)
上级
358c7296
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
24 addition
and
4 deletion
+24
-4
tools/fuchsia/build_fuchsia_artifacts.py
tools/fuchsia/build_fuchsia_artifacts.py
+24
-4
未找到文件。
tools/fuchsia/build_fuchsia_artifacts.py
浏览文件 @
69e0800c
...
...
@@ -85,23 +85,43 @@ def CopyFiles(source, destination):
raise
def
FindFile
(
name
,
path
):
for
root
,
dirs
,
files
in
os
.
walk
(
path
):
if
name
in
files
:
return
os
.
path
.
join
(
root
,
name
)
def
CopyGenSnapshotIfExists
(
source
,
destination
):
source_root
=
os
.
path
.
join
(
_out_dir
,
source
)
destination_base
=
os
.
path
.
join
(
destination
,
'dart_binaries'
)
gen_snapshot
=
FindFile
(
'gen_snapshot'
,
source_root
)
gen_snapshot_product
=
FindFile
(
'gen_snapshot_product'
,
source_root
)
if
gen_snapshot
:
dst_path
=
os
.
path
.
join
(
destination_base
,
'gen_snapshot'
)
CopyPath
(
gen_snapshot
,
dst_path
)
if
gen_snapshot_product
:
dst_path
=
os
.
path
.
join
(
destination_base
,
'gen_snapshot_product'
)
CopyPath
(
gen_snapshot_product
,
dst_path
)
def
CopyToBucketWithMode
(
source
,
destination
,
aot
,
product
,
runner_type
):
mode
=
'aot'
if
aot
else
'jit'
product_suff
=
'_product'
if
product
else
''
runner_name
=
'%s_%s%s_runner'
%
(
runner_type
,
mode
,
product_suff
)
far_dir
=
'%s_far'
%
runner_name
far_dir
_name
=
'%s_far'
%
runner_name
source_root
=
os
.
path
.
join
(
_out_dir
,
source
)
source
=
os
.
path
.
join
(
source_root
,
far_dir
)
CreateMetaPackage
(
sourc
e
,
runner_name
)
far_base
=
os
.
path
.
join
(
source_root
,
far_dir_name
)
CreateMetaPackage
(
far_bas
e
,
runner_name
)
pm_bin
=
GetPMBinPath
()
key_path
=
os
.
path
.
join
(
_script_dir
,
'development.key'
)
destination
=
os
.
path
.
join
(
_bucket_directory
,
destination
,
mode
)
CreateFarPackage
(
pm_bin
,
sourc
e
,
key_path
,
destination
)
CreateFarPackage
(
pm_bin
,
far_bas
e
,
key_path
,
destination
)
patched_sdk_dir
=
os
.
path
.
join
(
source_root
,
'flutter_runner_patched_sdk'
)
dest_sdk_path
=
os
.
path
.
join
(
destination
,
'flutter_runner_patched_sdk'
)
if
not
os
.
path
.
exists
(
dest_sdk_path
):
CopyPath
(
patched_sdk_dir
,
dest_sdk_path
)
CopyGenSnapshotIfExists
(
source_root
,
destination
)
def
CopyToBucket
(
src
,
dst
,
product
=
False
):
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录