Skip to content

Commit

Permalink
Update Forge configuration to use path.resolve for extraResource in p…
Browse files Browse the repository at this point in the history
…ackagerConfig
  • Loading branch information
Thavarshan committed Aug 17, 2024
1 parent 42a1b94 commit 94923e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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: {},
Expand Down

0 comments on commit 94923e0

Please sign in to comment.