-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathelectron-builder.config.js
More file actions
116 lines (106 loc) · 3.2 KB
/
electron-builder.config.js
File metadata and controls
116 lines (106 loc) · 3.2 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/** @type {import('electron-builder').Configuration} */
module.exports = {
appId: "com.oagent.app",
productName: "OAgent",
directories: {
output: "release/${version}",
buildResources: "build",
},
// --- Files to include in the app ---
files: [
"electron/dist/**/*",
"dist/**/*",
"package.json",
"!src/**",
"!electron/src/**",
"!docs/**",
"!logs/**",
"!opcode-reference/**",
"!tsup.electron.config.ts",
"!vite.config.ts",
"!tsconfig.json",
"!electron/tsconfig.json",
"!components.json",
"!*.md",
"!.claude/**",
"!.git/**",
"!.github/**",
"!build/**",
"!scripts/**",
"!release/**",
],
// --- ASAR packing ---
asar: true,
asarUnpack: [
"node_modules/node-pty/**",
"node_modules/electron-liquid-glass/**",
"node_modules/@anthropic-ai/claude-agent-sdk/cli.js",
"node_modules/@anthropic-ai/claude-agent-sdk/*.wasm",
"node_modules/@anthropic-ai/claude-agent-sdk/vendor/**",
"node_modules/@anthropic-ai/claude-agent-sdk/manifest*.json",
],
npmRebuild: true,
nodeGypRebuild: false,
includePdb: false,
// --- macOS ---
mac: {
target: ["dmg", "zip"],
category: "public.app-category.developer-tools",
icon: "build/icon.icns",
darkModeSupport: true,
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: "build/entitlements.mac.plist",
entitlementsInherit: "build/entitlements.mac.plist",
},
dmg: {
contents: [
{ x: 130, y: 220 },
{ x: 410, y: 220, type: "link", path: "/Applications" },
],
window: { width: 540, height: 380 },
},
// --- Windows ---
win: {
target: [{ target: "nsis", arch: ["x64"] }],
icon: "build/icon.ico",
files: [
"!node_modules/electron-liquid-glass/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-darwin/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-darwin/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-linux/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-linux/**",
"!node_modules/node-pty/prebuilds/darwin-*/**",
"!node_modules/node-pty/prebuilds/linux-*/**",
],
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
perMachine: false,
deleteAppDataOnUninstall: false,
artifactName: "${productName}-Setup-${version}.${ext}",
},
// --- Linux ---
linux: {
target: [
{ target: "AppImage", arch: ["x64"] },
{ target: "deb", arch: ["x64"] },
],
category: "Development",
icon: "build/icons/png",
files: [
"!node_modules/electron-liquid-glass/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-darwin/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-darwin/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/arm64-win32/**",
"!node_modules/@anthropic-ai/claude-agent-sdk/vendor/ripgrep/x64-win32/**",
"!node_modules/node-pty/prebuilds/darwin-*/**",
"!node_modules/node-pty/prebuilds/win32-*/**",
],
},
deb: {
depends: ["libnotify4", "libsecret-1-0"],
},
afterSign: "scripts/notarize.js",
};