1
+ /*
2
+ This file defines the full configuration for electron forge and each of the
3
+ packaging tools it configures. It's referenced by config.forge in package.json.
4
+
5
+ It also makes this configuration dynamic, using env vars to configure
6
+ secrets from CI without having to hardcode them. In theory it should be possible
7
+ to dynamically configure electron forge with secrets using ELECTRON_FORGE_*
8
+ variables, but this doesn't seem to work (see
9
+ https://github.com/electron-userland/electron-forge/issues/657) so
10
+ we have to do this instead.
11
+ */
12
+
13
+ const {
14
+ ELECTRON_FORGE_ELECTRON_WINSTALLER_CONFIG_CERTIFICATE_PASSWORD
15
+ } = process . env ;
16
+
17
+ module . exports = {
18
+ "make_targets" : {
19
+ "win32" : [
20
+ "squirrel" ,
21
+ "zip"
22
+ ] ,
23
+ "darwin" : [
24
+ "dmg" ,
25
+ "zip"
26
+ ] ,
27
+ "linux" : [
28
+ "deb" ,
29
+ "zip"
30
+ ]
31
+ } ,
32
+ "electronPackagerConfig" : {
33
+ "executableName" : "httptoolkit" ,
34
+ "packageManager" : "npm" ,
35
+ "icon" : "./src/icon" ,
36
+ "ignore" : [
37
+ "certificates"
38
+ ] ,
39
+ "afterCopy" : [
40
+ "./src/after-copy.js"
41
+ ] ,
42
+ "appBundleId" : "tech.httptoolkit.desktop" ,
43
+ "appCategoryType" : "public.app-category.developer-tools" ,
44
+ "osxSign" : {
45
+ "keychain" : "httptoolkit-build.keychain"
46
+ }
47
+ } ,
48
+ "electronWinstallerConfig" : {
49
+ "name" : "httptoolkit" ,
50
+ "title" : "HTTP Toolkit" ,
51
+ "exe" : "httptoolkit.exe" ,
52
+ "iconUrl" : "https://httptoolkit.tech/favicon.ico" ,
53
+ "setupIcon" : "./src/icon.ico" ,
54
+ "loadingGif" : "./src/installing.gif" ,
55
+ "certificateFile" : "./certificates/encrypted-win-cert.pfx" ,
56
+ "certificatePassword" : ELECTRON_FORGE_ELECTRON_WINSTALLER_CONFIG_CERTIFICATE_PASSWORD
57
+ } ,
58
+ "electronInstallerDMG" : {
59
+ "name" : "HTTP Toolkit" ,
60
+ "icon" : "src/icon.icns"
61
+ } ,
62
+ "electronInstallerDebian" : {
63
+ "name" : "httptoolkit" ,
64
+ "bin" : "httptoolkit" ,
65
+ "icon" : "src/icon.png" ,
66
+ "homepage" : "https://httptoolkit.tech" ,
67
+ "categories" : [
68
+ "Development" ,
69
+ "Network"
70
+ ]
71
+ } ,
72
+ "github_repository" : {
73
+ "owner" : "httptoolkit" ,
74
+ "name" : "httptoolkit-desktop"
75
+ } ,
76
+ }
0 commit comments