1
+ import { FusesPlugin } from '@electron-forge/plugin-fuses' ;
2
+ import { FuseV1Options , FuseVersion } from '@electron/fuses' ;
3
+
4
+ import type { ForgeConfig } from '@electron-forge/shared-types' ;
5
+
6
+ const config : ForgeConfig = {
7
+ packagerConfig : {
8
+ icon : "./packaging/icon" ,
9
+ extendInfo : {
10
+ "CFBundleURLSchemes" : [ "dicekeys" ]
11
+ } ,
12
+ osxSign : {
13
+ "identity" : "DiceKeys, LLC (CTDV6HX5KK)" ,
14
+ optionsForFile : ( filePath ) => {
15
+ // Here, we keep it simple and return a single entitlements.plist file.
16
+ // You can use this callback to map different sets of entitlements
17
+ // to specific files in your packaged app.
18
+ return {
19
+ entitlements : './packaging/entitlements.mac.plist'
20
+ } ;
21
+ } ,
22
+ } ,
23
+ osxNotarize : {
24
+ // tool: 'notarytool',
25
+ appleId : process . env . APPLE_ID ! ,
26
+ appleIdPassword : process . env . APPLE_ID_PASSWORD ! ,
27
+ teamId : "CTDV6HX5KK" ,
28
+ } ,
29
+ asar : true ,
30
+ protocols : [
31
+ {
32
+ "name" : "Electron Fiddle" ,
33
+ "schemes" : [ "electron-fiddle" ]
34
+ }
35
+ ] ,
36
+ } ,
37
+ rebuildConfig : { } ,
38
+ makers : [
39
+ {
40
+ name : '@electron-forge/maker-squirrel' ,
41
+ config : { } ,
42
+ } ,
43
+ {
44
+ name : '@electron-forge/maker-zip' ,
45
+ platforms : [ 'darwin' ] ,
46
+ config : { } ,
47
+ } ,
48
+ {
49
+ "name" : "@electron-forge/maker-deb" ,
50
+ "config" : {
51
+ "mimeType" : [ "x-scheme-handler/electron-fiddle" ]
52
+ }
53
+ } ,
54
+ {
55
+ name : '@electron-forge/maker-rpm' ,
56
+ config : { } ,
57
+ } , {
58
+ name : '@electron-forge/maker-dmg' ,
59
+ config : {
60
+ "format" : "ULMO" ,
61
+ "icon" : "./packaging/icon.icns" ,
62
+ "background" : "./packaging/dmg/background.tiff" ,
63
+ "debug" : true ,
64
+ }
65
+ } ,
66
+ ] ,
67
+ plugins : [
68
+ {
69
+ name : '@electron-forge/plugin-auto-unpack-natives' ,
70
+ config : { } ,
71
+ } ,
72
+ // Fuses are used to enable/disable various Electron functionality
73
+ // at package time, before code signing the application
74
+ new FusesPlugin ( {
75
+ version : FuseVersion . V1 ,
76
+ [ FuseV1Options . RunAsNode ] : false ,
77
+ [ FuseV1Options . EnableCookieEncryption ] : true ,
78
+ [ FuseV1Options . EnableNodeOptionsEnvironmentVariable ] : false ,
79
+ [ FuseV1Options . EnableNodeCliInspectArguments ] : false ,
80
+ [ FuseV1Options . EnableEmbeddedAsarIntegrityValidation ] : true ,
81
+ [ FuseV1Options . OnlyLoadAppFromAsar ] : true ,
82
+ } ) ,
83
+ ]
84
+ } ;
85
+
86
+ export default config ;
0 commit comments