This repository has been archived by the owner on Mar 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathelectron-builder.js
71 lines (68 loc) · 1.92 KB
/
electron-builder.js
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
const { certPassword, devCertPath, publisher, publisherName } = require('./sign/winSign');
module.exports = {
directories: {
app: '.',
},
files: ['./.webpack/**/*', './package.json', './sign/embedded.provisionprofile'],
appId: 'jp.co.chainbow.wallet3',
productName: 'Wallet 3',
artifactName: '${name}-${os}-${arch}-${version}.${ext}',
copyright: 'Copyright © 2021-2022 ChainBow Co. Ltd.',
protocols: {
name: 'Wallet 3',
schemes: ['ethereum', 'wallet3', 'wc', 'ledgerlive'],
},
//npmRebuild: 'false',
afterSign: "sign/appSign.js",
mac: {
icon: 'assets/AppIcon.icns',
entitlements: 'sign/entitlements.plist',
category: 'public.app-category.finance',
identity: 'ChainBow Co. Ltd (Z3N6SZF439)',
target: ['dmg'],
publish: ['github'],
},
mas: {
type: 'distribution',
hardenedRuntime: false, //IMPORTANT!!!!
identity: 'ChainBow Co. Ltd (Z3N6SZF439)',
entitlements: 'sign/entitlements.mas.plist',
entitlementsInherit: 'sign/entitlements.mas.inherit.plist',
provisioningProfile: 'sign/embedded.provisionprofile',
asar: {
smartUnpack: true,
},
asarUnpack: ['**/*.node'],
},
win: {
target: ['appx'],
icon: 'assets/win/AppIcon.png',
publish: ['github'],
legalTrademarks: 'Wallet 3, ChainBow Co, Ltd.',
certificateFile: devCertPath,
certificatePassword: certPassword,
asar: {
smartUnpack: true,
},
asarUnpack: ['**/*.node'],
},
linux: {
target: 'AppImage',
icon: 'assets/AppIcon.png',
publish: ['github'],
mimeTypes: ['x-scheme-handler/wallet3']
},
nsis: {
deleteAppDataOnUninstall: true,
createDesktopShortcut: 'always',
// include: 'nsis.nsh'
},
appx: {
applicationId: 'ChainBowCo.Ltd.Wallet3',
identityName: 'ChainBowCo.Ltd.8951B06B2934',
displayName: 'Wallet 3',
publisher: publisher,
publisherDisplayName: 'ChainBow Co. Ltd.',
setBuildNumber: true,
},
};