-
Notifications
You must be signed in to change notification settings - Fork 428
Expand file tree
/
Copy pathelectron-builder.config.ts
More file actions
79 lines (77 loc) · 1.94 KB
/
electron-builder.config.ts
File metadata and controls
79 lines (77 loc) · 1.94 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
import type { Configuration } from 'electron-builder';
import {
APP_ID,
ARTIFACT_PREFIX,
PRODUCT_NAME,
R2_BASE_URL,
UPDATE_CHANNEL,
} from './src/shared/app-identity';
const config: Configuration = {
appId: APP_ID,
productName: PRODUCT_NAME,
directories: { output: 'release' },
artifactName: `${ARTIFACT_PREFIX}-\${arch}.\${ext}`,
publish: [
{
provider: 'generic',
url: R2_BASE_URL,
channel: UPDATE_CHANNEL,
},
],
generateUpdatesFilesForAllChannels: false,
files: ['out/**/*', 'node_modules/**/*', 'drizzle/**/*'],
asarUnpack: [
'node_modules/better-sqlite3/**',
'node_modules/node-pty/**',
'node_modules/@parcel/watcher/**',
'**/*.node',
],
mac: {
category: 'public.app-category.developer-tools',
hardenedRuntime: true,
entitlements: 'build/entitlements.mac.plist',
entitlementsInherit: 'build/entitlements.mac.plist',
target: [
{ target: 'dmg', arch: ['arm64'] },
{ target: 'zip', arch: ['arm64'] },
],
icon: 'src/assets/images/emdash/emdash-beta.icns',
notarize: false,
},
dmg: {
icon: 'src/assets/images/emdash/emdash-beta.icns',
},
linux: {
category: 'Development',
target: [
{ target: 'AppImage', arch: ['x64'] },
{ target: 'deb', arch: ['x64'] },
{ target: 'rpm', arch: ['x64'] },
],
},
win: {
icon: 'src/assets/images/emdash/app-icon-beta.png',
target: [
{ target: 'nsis', arch: ['x64'] },
{ target: 'msi', arch: ['x64'] },
],
azureSignOptions: {
publisherName: 'General Action, Inc.',
endpoint: 'https://eus.codesigning.azure.net/',
certificateProfileName: 'emdash-public',
codeSigningAccountName: 'emdash',
},
},
msi: {
oneClick: false,
perMachine: false,
},
nsis: {
differentialPackage: true,
oneClick: false,
allowToChangeInstallationDirectory: true,
perMachine: false,
},
npmRebuild: false,
};
export default config;