0.0.1 • Published 2 years ago

electron-icon v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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
})