Skip to content
代码片段 群组 项目
提交 fcf6ba00 编辑于 作者: Jing Teng's avatar Jing Teng
浏览文件

pack apack.json within .zip and .asar file.

上级 b0b125c9
No related branches found
No related tags found
无相关合并请求
......@@ -208,17 +208,11 @@
"zip",
"deb",
"rpm"
],
"extraFiles": [
"apack.json"
]
},
"win": {
"target": [
"zip"
],
"extraFiles": [
"apack.json"
]
},
"directories": {
......
......@@ -6,7 +6,12 @@ const pathTo7zip = sevenBin.path7za
exports.default = async function (buildResult) {
buildResult?.artifactPaths?.forEach((element) => {
if (element.includes('mac') && element.endsWith('.zip')) {
if (
(element.includes('mac') ||
element.includes('win') ||
element.includes('linux')) &&
element.endsWith('.zip')
) {
const myStream = Seven.add(
element,
path.join(buildResult.outDir, '../apack.json'),
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册