This commit is contained in:
2025-10-14 02:59:27 +08:00
commit 424eb9384f
8 changed files with 3099 additions and 0 deletions

20
bun.config.ts Normal file
View File

@@ -0,0 +1,20 @@
// @ts-check
import { resolvePath } from '@kevisual/use-config';
import { execSync } from 'node:child_process';
const entry = 'src/index.ts';
const naming = 'app';
const external = ['electron'];
await Bun.build({
target: 'node',
format: 'esm',
entrypoints: [resolvePath(entry, { meta: import.meta })],
outdir: resolvePath('./dist', { meta: import.meta }),
naming: {
entry: `${naming}.js`,
},
sourcemap: 'external',
external,
env: 'KEVISUAL_*',
});