1 Star 0 Fork 0

kangzgame/aigcstarter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
forge.config.ts 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
kangzgame 提交于 2023-12-02 11:48 . aigcstarter
import type { ForgeConfig } from '@electron-forge/shared-types';
import { MakerSquirrel } from '@electron-forge/maker-squirrel';
import { MakerZIP } from '@electron-forge/maker-zip';
import { MakerDeb } from '@electron-forge/maker-deb';
import { MakerRpm } from '@electron-forge/maker-rpm';
import { VitePlugin } from '@electron-forge/plugin-vite';
const config: ForgeConfig = {
packagerConfig: {},
rebuildConfig: {},
makers: [new MakerSquirrel({}), new MakerZIP({}, ['darwin']), new MakerRpm({}), new MakerDeb({})],
plugins: [
new VitePlugin({
build: [
{
// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
entry: 'packages/main/index.ts',
config: 'packages/main/vite.config.ts',
},
{
entry: 'packages/preload/index.ts',
config: 'packages/preload/vite.config.ts',
},
],
renderer: [
{
name: 'main_window',
config: 'packages/renderer/vite.config.ts',
},
],
}),
],
};
export default config;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kangzgame/aigcstarter.git
git@gitee.com:kangzgame/aigcstarter.git
kangzgame
aigcstarter
aigcstarter
master

搜索帮助