npm 命令打包

安装 7z

{
  "scripts": {
    "start": "electron .",
    "pack": "electron-builder --dir",
    "7z": "7z a ./dist/%npm_package_name%_%npm_package_version%.zip ./dist/win-unpacked/*",
    "build-7z": "npm run pack && 7z a ./dist/%npm_package_name%_%npm_package_version%.zip ./dist/win-unpacked/*"
  }
}
posted @ 2022-07-12 10:51  刺头  阅读(711)  评论(0编辑  收藏  举报