zoukankan      html  css  js  c++  java
  • Electron打包

    打包参考以下网址:

    https://www.electron.build/cli

    https://www.electron.build/configuration/configuration

    本人VSCode源码打包时用到的配置:

    "build": {
    "appId": "xxApp",
    "productName": "xx",
    "icon": "build/logo.ico",
    "asar": true,                                                                 //压缩js
    "buildDependenciesFromSource": false,                    //可以加速编译或者调试,需要重新编译时变更下
    "npmRebuild": false,                                                   //可以加速编译或者调试,需要重新编译时变更下
    "electronDownload": {
    "version": "3.0.16",
    "mirror": "https://npm.taobao.org/mirrors/electron/",   //可以加速下载
    "platform": "win32"
    },
    "asarUnpack": [                                                           //指定asar压缩包不打包的文件
    "./out",
    "./extensions",
    "./package.json",
    "./product.json",
    "./LICENSE.txt",
    "./ThirdPartyNotices.txt"
    ],
    "directories": {
    "buildResources": ".",
    "output": "dist"
    },
    "compression": "normal",
    "files": [                                                                        //指定打包包含的文件
    "extensions/**/*",
    "node_modules/**/*",
    "out/**/*",
    "resources/win32/**/*",
    "resources/*.svg",
    "package.json",
    "product.json",
    "LICENSE.txt",
    "ThirdPartyNotices.txt"
    ]
    },

  • 相关阅读:
    DBHelper
    jsTree使用
    爬虫系列之Scrapy框架
    Mongodb安装
    爬虫系列之mongodb
    爬虫学习目录
    爬虫之selenium模块
    爬虫简介与requests模块
    爬虫数据解析的三方式
    线程相关
  • 原文地址:https://www.cnblogs.com/guanglin/p/11120397.html
Copyright © 2011-2022 走看看