Repository navigation
Expand file tree
/
Copy pathelectron-builder.cjs
More file actions
57 lines (55 loc) · 1.87 KB
/
Copy pathelectron-builder.cjs
File metadata and controls
57 lines (55 loc) · 1.87 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
const arch = process.env.BUILD_ARCH; // 'arm64' | 'x64'
const macSidecar =
arch === 'x64'
? { from: 'src-api/dist/agent-api-x86_64-apple-darwin', to: 'sidecar/agent-api-x86_64-apple-darwin' }
: { from: 'src-api/dist/agent-api-aarch64-apple-darwin', to: 'sidecar/agent-api-aarch64-apple-darwin' };
/** @type {import('electron-builder').Configuration} */
module.exports = {
appId: 'com.aiteam.app',
productName: 'AI Team',
files: [
'package.json',
{ from: 'dist-electron', to: 'dist-electron', filter: ['**/*'] },
{ from: 'dist-react', to: 'dist-react', filter: ['**/*'] },
],
extraResources: [
'dist-electron/electron/preload.cjs',
'app-icon.png',
'trayIconTemplate.png',
{ from: 'config', to: 'config' },
{ from: 'builtin-skills', to: 'builtin-skills', filter: ['**/*'] },
'skills-catalog.json',
],
asarUnpack: [
'node_modules/@anthropic-ai/claude-agent-sdk/vendor/**/*',
],
icon: './app-icon.png',
mac: {
target: 'dmg',
entitlements: 'build/entitlements.mac.plist',
entitlementsInherit: 'build/entitlements.mac.plist',
hardenedRuntime: true,
gatekeeperAssess: false,
notarize: false,
extraResources: [
macSidecar,
{ from: 'cli-bundle', to: 'cli-bundle', filter: ['**/*', '!.git'] },
],
},
linux: {
target: 'AppImage',
category: 'Utility',
extraResources: [
{ from: 'src-api/dist/agent-api-x86_64-unknown-linux-gnu', to: 'sidecar/agent-api-x86_64-unknown-linux-gnu' },
{ from: 'cli-bundle', to: 'cli-bundle', filter: ['**/*', '!.git'] },
],
},
win: {
target: ['nsis', 'portable'],
extraResources: [
{ from: 'src-api/dist/agent-api-x86_64-pc-windows-msvc.exe', to: 'sidecar/agent-api-x86_64-pc-windows-msvc.exe' },
{ from: 'cli-bundle', to: 'cli-bundle', filter: ['**/*', '!.git'] },
],
},
afterPack: './scripts/afterPack.cjs',
};