From 94923e0785e8324d4a43a056dd18572d03f9f35b Mon Sep 17 00:00:00 2001 From: Jerome Thayananthajothy Date: Sat, 17 Aug 2024 19:31:52 +0100 Subject: [PATCH] Update Forge configuration to use path.resolve for extraResource in packagerConfig --- forge.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forge.config.ts b/forge.config.ts index 080afbd..19dbbc1 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -7,6 +7,7 @@ import { VitePlugin } from '@electron-forge/plugin-vite'; import { FusesPlugin } from '@electron-forge/plugin-fuses'; import { FuseV1Options, FuseVersion } from '@electron/fuses'; import { PublisherGithub } from '@electron-forge/publisher-github'; +import path from 'path'; const config: ForgeConfig = { packagerConfig: { @@ -15,7 +16,7 @@ const config: ForgeConfig = { }, icon: process.platform === 'win32' ? 'src/assets/images/icon/icon.ico' : 'src/assets/images/icon/icon.icns', executableName: 'comet', - extraResource: 'node_modules/ffmpeg-static/ffmpeg', + extraResource: path.resolve(__dirname, 'node_modules', 'ffmpeg-static', 'ffmpeg'), // Bypassing the sigining and notarisation for now // ...(process.platform === 'darwin' && { // osxSign: {},