Skip to content
代码片段 群组 项目
未验证 提交 7a0cf73a 编辑于 作者: Jing T's avatar Jing T 提交者: GitHub
浏览文件

Jenkins fix (#692)

* add pack:mac:native target
* workaround macOS Jenkins machine not able to build mac universal image.
* workaround for download-artifact build issue on node14, until DevOps can upgrade node16
上级 907ab94c
No related branches found
No related tags found
无相关合并请求
/dist
src-script/download-artifact.js
......@@ -47,6 +47,8 @@ pipeline
{
sh 'npm run version-stamp'
sh 'npm run version'
sh 'npm rebuild canvas --update-binary'
sh 'npm rebuild libxmljs --update-binary'
}
}
}
......@@ -247,7 +249,7 @@ pipeline
sh 'security unlock-keychain -u "/Library/Keychains/System.keychain"'
sh 'npm run version-stamp'
sh 'npm run build'
sh 'npm run pack:mac'
sh 'npm run pack:mac:native'
stash includes: 'dist/*mac.zip', name: 'zap_apack_mac'
}
}
......
......@@ -17,7 +17,8 @@
"bin": "dist/src-electron/main-process/main.js",
"scripts": {
"download-artifact": "ts-node src-script/download-artifact.ts",
"pkg:download-artifact": "tsc src-script/download-artifact.ts --outDir ./dist/ && npx pkg ./dist/download-artifact.js -t node16-linux-x64,node16-linux-arm64,node16-macos-x64,node16-win-x64 --output dist/download-artifact --compress GZip",
"pkg:download-artifact": "npx pkg src-script/download-artifact.js -t node16-linux-x64,node16-linux-arm64,node16-macos-x64,node16-win-x64 --output dist/download-artifact --compress GZip",
"compile:download-artifact": "tsc src-script/download-artifact.ts --esModuleInterop",
"lic": "node src-script/license-check.js --production",
"lint": "eslint --ext .js,.vue src src-electron src-shared src-script test",
"lintfix": "eslint --fix --ext .js,.vue src src-electron src-shared src-script test",
......@@ -91,6 +92,7 @@
"pack:linux": "exec electron-builder -l",
"pack:win": "exec electron-builder -w",
"pack:mac": "exec electron-builder -m --universal",
"pack:mac:native": "exec electron-builder -m",
"pkg": "npm run build && npx pkg --out-path dist/ --compress GZip .",
"pkg:linux": "npm run build && npx pkg -t node16-linux-x64 --output dist/zap-linux --compress GZip .",
"pkg:win": "npm run build && npx pkg -t node16-win-x64 --output dist/zap-win.exe --compress GZip .",
......
此差异已折叠。
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册