Configure Windows PKG package generated exe file icon and detailed information
run npm i pkg-exe-build -D
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/**/*"],
},
};
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
> pkg@5.7.0
> Reusing base binaries built locally:
C:\Users\Promise\.pkg-cache\v3.4\built-v16.15.0-win-x64