-
Notifications
You must be signed in to change notification settings - Fork 109
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
163 lines (151 loc) · 4.45 KB
/
electron-builder.yml
File metadata and controls
163 lines (151 loc) · 4.45 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
appId: com.opencowork.app
productName: Open Cowork
copyright: Copyright © 2026 Open Cowork Team
directories:
output: release
buildResources: resources
npmRebuild: true
afterPack: ./scripts/after-pack.js
afterAllArtifactBuild: ./scripts/compress-dmg.js
files:
- dist/**/*
- dist-electron/**/*
- package.json
- node_modules/@img/**/*
- node_modules/better-sqlite3/**/*
- node_modules/@anthropic-ai/sdk/**/*
- node_modules/@larksuiteoapi/**/*
- node_modules/openai/**/*
- node_modules/@modelcontextprotocol/**/*
- node_modules/electron-updater/**/*
- node_modules/chokidar/**/*
- node_modules/archiver/**/*
- node_modules/ngrok/**/*
- node_modules/ws/**/*
- node_modules/glob/**/*
- node_modules/dotenv/**/*
- node_modules/bufferutil/**/*
- node_modules/utf-8-validate/**/*
# Exclude non-essential files from node_modules to reduce bundle size
- '!**/*.js.map'
- '!**/*.mjs.map'
- '!**/*.d.ts.map'
- '!**/*.mts.map'
- '!**/*.d.ts'
- '!**/*.ts'
- '!**/README.md'
- '!**/CHANGELOG.md'
- '!**/CHANGELOG'
- '!**/LICENSE'
- '!**/LICENSE.md'
- '!**/.npmignore'
- '!**/.eslintrc*'
- '!**/tsconfig.json'
# MCP servers and platform-specific resources are declared in each platform's
# extraResources section below (win/mac/linux).
# Skills are extracted via extraResources (per-platform) to avoid asar symlink issues.
# Sharp native modules must also be unpacked for image processing.
# Note: MCP servers are bundled with esbuild (all deps inlined), so no need to unpack MCP SDK
asarUnpack:
- node_modules/@img/**/*.node
- node_modules/@img/**/*.dll
- node_modules/@img/**/*.dylib
- node_modules/@img/**/*.so
- node_modules/better-sqlite3/**/*.node
- node_modules/bufferutil/**/*.node
- node_modules/utf-8-validate/**/*.node
win:
icon: resources/icon.ico
target:
- target: nsis
arch:
- x64
artifactName: ${productName}-${version}-win-${arch}.${ext}
signAndEditExecutable: false
extraResources:
- from: .bundle-resources/mcp
to: mcp
- from: resources/node/win32-x64
to: node
- from: dist-wsl-agent
to: wsl-agent
- from: .claude/skills
to: skills
mac:
icon: resources/icon.icns
target:
- target: dir
arch:
- arm64
artifactName: ${productName}-${version}-mac-${arch}.${ext}
identity: auto
hardenedRuntime: true
gatekeeperAssess: true
entitlements: resources/entitlements.mac.plist
entitlementsInherit: resources/entitlements.mac.plist
extendInfo:
LSApplicationCategoryType: public.app-category.developer-tools
NSScreenCaptureUsageDescription: 'Open Cowork needs screen recording access for GUI automation.'
NSAccessibilityUsageDescription: 'Open Cowork needs accessibility access for GUI automation.'
extraResources:
- from: .bundle-resources/mcp
to: mcp
- from: resources/node/darwin-${arch}
to: node
# Bundled Python runtime + site-packages for GUI automation helpers (Pillow, pyobjc/Quartz)
- from: resources/python/darwin-${arch}
to: python
# Bundled GUI helper tools (e.g. cliclick) to avoid relying on user-installed Homebrew tools
- from: resources/tools/darwin-${arch}
to: tools
- from: dist-lima-agent
to: lima-agent
- from: .claude/skills
to: skills
linux:
icon: resources/icon.png
target:
- target: AppImage
arch:
- x64
artifactName: ${productName}-${version}-linux-${arch}.${ext}
extraResources:
- from: .bundle-resources/mcp
to: mcp
- from: resources/node/linux-x64
to: node
- from: resources/python/linux-${arch}
to: python
- from: .claude/skills
to: skills
nsis:
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true
include: installer.nsh
warningsAsErrors: false
# Preserve user config/history by default; offer explicit cleanup tooling instead of destructive uninstall.
deleteAppDataOnUninstall: false
dmg:
# Explicit size to avoid dmgbuild "No space left on device" for large apps.
# The temporary writable DMG is auto-shrunk after copying, so this doesn't
# affect final DMG size. Our ULMO compression hook further reduces it.
size: '3g'
window:
width: 600
height: 440
contents:
- x: 150
y: 220
name: 'Open Cowork.app'
- x: 450
y: 220
type: link
path: /Applications
name: 'Applications'
extraMetadata:
main: dist-electron/main/index.js
publish:
provider: github
owner: OpenCoworkAI
repo: open-cowork