5 lines
424 B
JavaScript
5 lines
424 B
JavaScript
import { build } from 'esbuild'
|
|
import './make-icon.mjs'
|
|
await build({ entryPoints: ['src/main/index.ts'], outfile: 'dist/main/index.cjs', bundle: true, platform: 'node', target: 'node22', format: 'cjs', external: ['electron'], sourcemap: true })
|
|
await build({ entryPoints: ['src/main/preload.ts'], outfile: 'dist/main/preload.cjs', bundle: true, platform: 'node', target: 'node22', format: 'cjs', external: ['electron'] })
|