Skip to content

Commit

Permalink
Merge branch 'nutjs' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherTrimboli committed Dec 12, 2023
2 parents b48a390 + 2848368 commit 7c100ce
Show file tree
Hide file tree
Showing 25 changed files with 3,956 additions and 827 deletions.
59 changes: 33 additions & 26 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,52 @@ 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";
import { AutoUnpackNativesPlugin } from "@electron-forge/plugin-auto-unpack-natives";
import { WebpackPlugin } from "@electron-forge/plugin-webpack";
import dotenv from "dotenv";

import { mainConfig } from "./webpack.main.config";
import { rendererConfig } from "./webpack.renderer.config";

dotenv.config();

const config: ForgeConfig = {
packagerConfig: {},
packagerConfig: {
asar: true,
},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerZIP({}, ["darwin"]),
new MakerRpm({}),
new MakerDeb({}),
],

plugins: [
new VitePlugin({
// `build` can specify multiple entry builds, which can be Main process, Preload scripts, Worker process, etc.
// If you are familiar with Vite configuration, it will look really familiar.
build: [
{
// `entry` is just an alias for `build.lib.entry` in the corresponding file of `config`.
entry: "src/main.ts",
config: "vite.main.config.ts",
},
{
entry: "src/preload.ts",
config: "vite.preload.config.ts",
},
],
renderer: [
{
name: "main_window",
config: "vite.renderer.config.ts",
},
{
name: "overlay_window",
config: "src/overlay/vite.overlay.renderer.config.ts",
},
],
new AutoUnpackNativesPlugin({}),
new WebpackPlugin({
mainConfig,
renderer: {
config: rendererConfig,
entryPoints: [
{
html: "./src/index.html",
js: "./src/renderer.ts",
name: "main_window",
preload: {
js: "./src/preload.ts",
},
},
{
html: "./src//overlay/index.html",
js: "./src/overlay/renderer.ts",
name: "overlay_window",
preload: {
js: "./src/preload.ts",
},
},
],
},
}),
],
publishers: [
Expand Down
11 changes: 0 additions & 11 deletions index.html

This file was deleted.

Loading

0 comments on commit 7c100ce

Please sign in to comment.