pkg-exe-build
v1.0.17
Published
Configure Windows PKG package generated exe file icon and detailed information windows 平台下 配置图标及详细信息 使用 pkg 打包 生成 exe 文件
Downloads
7
Maintainers
Readme
pkg-exe-build
Configure Windows PKG package generated exe file icon and detailed information
install
run npm i pkg-exe-build -D
config
run npx pkg-exe-build init
> New Build Config File: exeBuild.config.js
> New Icon File: app.ico
The installation creates the 'exebuild.config. js' configuration file in the current project directory
module.exports = {
file: "app.js", // entryFile
icon: "app.ico",
name: "name",
description: "description",
company: "company",
version: "1.0.0",
copyright: "copyright",
pkg: {
// https://github.com/vercel/pkg
targets: ["node16-win-x64"],
outputPath: "dist",
assets: ["node_modules/**/*"],
},
};
build
run npx pkg-exe-build build
> Download Binaries
> Read EXE
> Set Product Version
> Set File Version
> Set File Info
> Set Icon
> Generate EXE
> Save EXE
> Bundling App
> [email protected]
> Reusing base binaries built locally:
C:\Users\Promise\.pkg-cache\v3.4\built-v16.15.0-win-x64