This repository was archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathforge.config.js
More file actions
100 lines (97 loc) · 3.09 KB
/
forge.config.js
File metadata and controls
100 lines (97 loc) · 3.09 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const { appleId, appleIdPassword } = require('./sign/appSign');
const { certPassword, devCertPath, publisher } = require('./sign/winSign');
const package = require('./package.json');
const entitlementsForFile = (path) => {
return path.includes('Helper') ? 'sign/entitlements.mas.plist' : undefined;
};
module.exports = {
packagerConfig: {
appBundleId: 'jp.co.chainbow.wallet3',
appCopyright: 'ChainBow Co, Ltd.',
appCategoryType: 'public.app-category.finance',
darwinDarkModeSupport: false,
icon: './assets/AppIcon.icns',
platform: 'dmg',
osxSign: {
identity: '3rd Party Mac Developer Application: ChainBow Co. Ltd (Z3N6SZF439)',
platform: 'dmg',
hardenedRuntime: false,
'gatekeeper-assess': true,
// 'signature-flags': 'library',
entitlements: 'sign/entitlements.mas.plist',
'entitlements-inherit': 'sign/entitlements.mas.inherit.plist',
'provisioning-profile': 'sign/embedded.provisionprofile',
type: 'distribution',
},
// osxNotarize: {
// appleId,
// appleIdPassword,
// },
protocols: [
{
name: 'Wallet 3',
protocol: 'wallet3',
schemes: ['ethereum', 'wallet3', 'wc', 'ledgerlive'],
},
],
win32metadata: {
CompanyName: 'ChainBow Co, Ltd.',
ProductName: 'Wallet 3',
},
},
makers: [
{
name: '@electron-forge/maker-pkg',
config: {
platform: 'mas',
identity: '3rd Party Mac Developer Installer: ChainBow Co. Ltd (Z3N6SZF439)',
name: `${package.name}-mac-${process.arch}-${package.version}`,
},
},
{
name: '@electron-forge/maker-appx',
config: {
publisher,
devCert: devCertPath,
certPass: certPassword,
packageDisplayName: 'Wallet 3',
packageDescription: 'A Secure Wallet for Web3 Era',
containerVirtualization: true,
packageVersion: package.version,
makeVersionWinStoreCompatible: true,
flatten: true,
assets: './assets/win/AppIcon.png',
},
},
],
plugins: [
[
'@electron-forge/plugin-webpack',
{
devContentSecurityPolicy: `default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;`,
mainConfig: './webpack.main.config.js',
renderer: {
config: './webpack.renderer.config.js',
entryPoints: [
{
html: './src/index.html',
js: './src/renderer.ts',
name: 'main_window',
preload: {
js: './src/preload.ts',
},
},
{
html: './src/index.html',
js: './src/popup_renderer.ts',
name: 'popup_window',
preload: {
js: './src/preload.ts',
},
},
],
},
},
],
],
};