Repository navigation
Expand file tree
/
Copy pathforge.config.js
More file actions
52 lines (51 loc) · 1.84 KB
/
Copy pathforge.config.js
File metadata and controls
52 lines (51 loc) · 1.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');
const nightly = /-nightly\./.test(require('./package.json').version);
module.exports = {
packagerConfig: {
asar: true,
// Explicit .ico: Windows picks this for the packaged RunContainer.exe and
// the window/taskbar icon, and it carries every size 16-256.
icon: nightly ? 'public/runcontainer-nightly-icon.ico' : 'public/runcontainer-icon.ico',
executableName: nightly ? 'RunContainerNightly' : 'RunContainer',
name: nightly ? 'RunContainer Nightly' : 'RunContainer',
overwrite: true,
// The main process only needs Electron itself plus Node builtins, so drop
// devDependencies from the shipped app. This also keeps paths short: dev
// trees (typescript-eslint, testing-library) contain ~190-char paths that
// break Inno Setup (MAX_PATH) once prefixed with the checkout directory.
prune: true,
// Never ship build caches (babel-loader/terser): thousands of files with
// hash names up to ~230 chars that also break the installer build.
// (Forward-slash style like electron-packager's own defaults: Forge
// normalizes paths before matching, so backslash classes never match.)
ignore: [
/\/\.cache(\/|$)/,
/^\/dist(\/|$)/,
/^\/out(\/|$)/,
/^\/build\/build(\/|$)/,
],
},
rebuildConfig: {},
makers: [
{
name: '@electron-forge/maker-squirrel',
config: {
name: 'RunContainer',
authors: 'RunContainer',
description: 'Sandboxed app launcher',
setupIcon: 'public/runcontainer-icon.ico',
},
},
{
name: '@electron-forge/maker-zip',
platforms: ['win32'],
},
],
plugins: [
{
name: '@electron-forge/plugin-auto-unpack-natives',
config: {},
},
],
};