chore: mac打包配置

This commit is contained in:
Wxw-Gu committed 2026-11-01 01:21:00 +08:00
1 parent 84737a7407
commit 915ee73f95
20 files changed
+1170 -58

No files matched your search

+5 -1
View File
@@ -2,9 +2,12 @@ import { resolve } from 'path'
import { defineConfig } from 'electron-vite'
import react from '@vitejs/plugin-react'
const editionOutDir = process.env.TRACEMEMO_EDITION_OUT_DIR
export default defineConfig({
main: {
build: {
...(editionOutDir ? { outDir: editionOutDir } : {}),
rollupOptions: {
input: {
index: resolve('src/main/index.ts'),
@@ -20,8 +23,9 @@ export default defineConfig({
}
}
},
preload: {},
preload: editionOutDir ? { build: { outDir: editionOutDir } } : {},
renderer: {
...(editionOutDir ? { build: { outDir: editionOutDir } } : {}),
resolve: {
alias: {
'@renderer': resolve('src/renderer/src')