From 09c17a62b257048deb2f716fb6f2ceb88fff3368 Mon Sep 17 00:00:00 2001 From: Benoit Coudour Date: Sun, 5 Jan 2025 16:31:28 +0100 Subject: [PATCH] fix: electron-builder configuration --- electron-builder.config.ts | 13 ++++--------- vite.renderer.config.mts | 6 ------ 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/electron-builder.config.ts b/electron-builder.config.ts index 68f0f6b5..d0fc73c4 100644 --- a/electron-builder.config.ts +++ b/electron-builder.config.ts @@ -6,15 +6,10 @@ import { Configuration } from "electron-builder"; const config: Configuration = { appId: "BeyondAllReason", productName: "Beyond All Reason", - files: [ - "!**/.vscode/*", - "!{src,out,tests,vendor}/*", - "!vite.*.config.{js,ts,mjs,cjs,mts}", - "!{eslint.config.mjs,.prettierignore,prettier.config.mjs,README.md}", - "!{.env,.env.*,.npmrc,pnpm-lock.yaml}", - "!{tsconfig.json,tsconfig.*.json}", - "!{electron-builder.config.ts,forge.config.cjs}", - ], + + asar: true, + disableDefaultIgnoredFiles: true, + files: ["./.vite/**", "!node_modules", "./node_modules/7zip-bin/**"], directories: { buildResources: "buildResources" }, asarUnpack: ["resources/**"], diff --git a/vite.renderer.config.mts b/vite.renderer.config.mts index b717605c..e0d64c74 100644 --- a/vite.renderer.config.mts +++ b/vite.renderer.config.mts @@ -16,12 +16,6 @@ export default defineConfig({ }, build: { sourcemap: true, - rollupOptions: { - output: { - manualChunks: () => "everything.js", - sourcemap: false, - }, - }, }, optimizeDeps: { esbuildOptions: {