Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
a22797b6
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
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,发现更多精彩内容 >>
未验证
提交
a22797b6
编写于
9月 04, 2019
作者:
K
Kaushik Iska
提交者:
GitHub
9月 04, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Support building standalone far packages with autogenerating manigests (#11849)
Also makes package_dir support testonly mode
上级
c10b6b99
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
20 addition
and
4 deletion
+20
-4
tools/fuchsia/gen_package.py
tools/fuchsia/gen_package.py
+18
-4
tools/fuchsia/package_dir.gni
tools/fuchsia/package_dir.gni
+2
-0
未找到文件。
tools/fuchsia/gen_package.py
浏览文件 @
a22797b6
...
...
@@ -13,6 +13,8 @@ import os
import
subprocess
import
sys
from
gather_flutter_runner_artifacts
import
CreateMetaPackage
# Generates the manifest and returns the file.
def
GenerateManifest
(
package_dir
):
...
...
@@ -57,23 +59,35 @@ def main():
parser
.
add_argument
(
'--signing-key'
,
dest
=
'signing_key'
,
action
=
'store'
,
required
=
True
)
parser
.
add_argument
(
'--manifest-file'
,
dest
=
'manifest_file'
,
action
=
'store'
,
required
=
True
)
'--manifest-file'
,
dest
=
'manifest_file'
,
action
=
'store'
,
required
=
False
)
parser
.
add_argument
(
'--far-name'
,
dest
=
'far_name'
,
action
=
'store'
,
required
=
False
)
args
=
parser
.
parse_args
()
assert
os
.
path
.
exists
(
args
.
pm_bin
)
assert
os
.
path
.
exists
(
args
.
package_dir
)
assert
os
.
path
.
exists
(
args
.
signing_key
)
assert
os
.
path
.
exists
(
args
.
manifest_file
)
pkg_dir
=
args
.
package_dir
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
pkg_dir
,
'meta'
,
'package'
)):
CreateMetaPackage
(
pkg_dir
,
args
.
far_name
)
manifest_file
=
None
if
args
.
manifest_file
is
not
None
:
assert
os
.
path
.
exists
(
args
.
manifest_file
)
manifest_file
=
args
.
manifest_file
else
:
manifest_file
=
GenerateManifest
(
args
.
package_dir
)
pm_command_base
=
[
args
.
pm_bin
,
'-o'
,
args
.
package_dir
,
os
.
path
.
abspath
(
os
.
path
.
join
(
pkg_dir
,
os
.
pardir
))
,
'-k'
,
args
.
signing_key
,
'-m'
,
args
.
manifest_file
,
manifest_file
,
]
# Build the package
...
...
tools/fuchsia/package_dir.gni
浏览文件 @
a22797b6
...
...
@@ -9,6 +9,7 @@ template("package_dir") {
assert(defined(invoker.binary), "package must define binary")
assert(defined(invoker.meta_dir), "package must define meta_dir")
pkg_testonly = defined(invoker.testonly) && invoker.testonly
pkg_target_name = target_name
pkg = {
package_version = "0" # placeholder
...
...
@@ -72,5 +73,6 @@ template("package_dir") {
deps = pkg.deps + [ ":$cmx_target" ]
args = [ "--file-list={{response_file_name}}" ]
outputs = copy_outputs
testonly = pkg_testonly
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录