mirror of
https://wget.la/https://github.com/Wxw-Gu/WechatExplorer
synced 2026-12-01 01:05:30 +08:00
chore: mac打包配置
This commit is contained in:
1 parent
84737a7407
commit
915ee73f95
20 files changed
+1170
-58
No files matched your search
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user