electron-icon
v0.0.1
Published
electron-icon
Downloads
2
Maintainers
Readme
diff enviroment electron desktop icon choose when build package
demo, can find dist/example
.
├── env.ts
├── index.js
├── package.json
├── srcDir
│ ├── dev
│ │ ├── index.html
│ │ └── index2.html
│ └── pre
│ ├── index.html
│ └── index2.html
├── tarDir
│ ├── index.html
│ └── index2.html
└── yarn.lock
# index.js
const {electronPackageIconCopy } = require('../dist')
const srcDir = `${__dirname}/srcDir`
const tarDir = `${__dirname}/tarDir`
const envFileTsPath = `${__dirname}/env.ts`
const envField = "env"
electronPackageIconCopy({
srcDir,
tarDir,
envFileTsPath,
envField
})