Repository navigation
Expand file tree
/
Copy pathelectron-builder.yml
More file actions
169 lines (154 loc) · 7.32 KB
/
Copy pathelectron-builder.yml
File metadata and controls
169 lines (154 loc) · 7.32 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
164
165
166
167
168
169
# Reverse DNS of this project's own home (was the upstream project's domain).
appId: io.github.agentvivekkumar.dontbemichael
productName: "Don't Be Michael"
copyright: Copyright © 2026 Vivek Kumar
# Where electron-updater looks for new versions (latest*.yml + assets on GitHub
# releases). The release workflow still uploads assets itself (--publish never);
# this block only stamps app-update.yml into the packaged app so the updater
# knows which repo to poll.
publish:
provider: github
owner: agentvivekkumar
repo: dontbemichael
# Bake the update toast's "What's new" list straight into latest*.yml.
#
# Without this, electron-updater has nothing to read: parseUpdateInfo yaml-loads
# the channel file, finds releaseNotes null, and falls back to computeReleaseNotes
# over GitHub's releases.atom feed. That feed carries GitHub's RENDERED HTML of
# RELEASE.md, not its markdown, so the digest sees no `##` headings at all and
# scans for bullets instead. The only line in 53KB that looks like a bullet is
# `* { box-sizing: border-box; }` inside RELEASE.md's <style> block, so the
# toast's entire what's-new list was one CSS rule.
#
# A present releaseNotes means the feed is never consulted. That is the whole
# point: the toast is drawn by the ALREADY RUNNING app, so a parser fix reaches
# only people who have already upgraded, while this is a field every existing
# client on every old version already reads.
#
# Keep this file short and free of HTML. It is sized for a 340px toast (5
# bullets, 280 chars total), NOT for the release page, which stays RELEASE.md.
releaseInfo:
releaseNotesFile: build/release-notes.md
# Notarize + staple after signing, but only when APPLE_* creds are in the env
# (the hook no-ops otherwise, so contributor builds still work). Root-level hook.
afterSign: build/notarize.cjs
# Register the dontbemichael:// URL scheme (shareable-hires deep link) in the
# packaged app: CFBundleURLTypes on macOS, registry entries via NSIS on Windows.
protocols:
- name: "Don't Be Michael"
schemes:
- dontbemichael
# electron-vite emits the app into out/; package exactly that plus what the
# runtime needs. node-pty is native, so keep it out of the asar.
directories:
output: dist
buildResources: build
files:
- out/**
- package.json
- "!**/*.{md,map,ts,tsx}"
- "!**/{.eslintrc,.prettierrc,tsconfig*.json,electron.vite.config.*}"
# Plain files under the app's resources dir (process.resourcesPath), outside
# the asar, so agents can run them with the bundled node.
extraResources:
# MIT requires the copyright and permission notice in every copy, including
# the packaged app, so LICENSE ships in Contents/Resources.
- from: LICENSE
to: LICENSE
# md-mail: the MCP server team members use for mail (docs/designs/multi-mailbox.md).
# Claude Code starts it with the bundled node, outside the asar.
- from: resources/md-mail-mcp.cjs
to: md-mail-mcp.cjs
# md-integrations: the same for the integrations the owner gives a member.
- from: resources/md-integrations-mcp.cjs
to: md-integrations-mcp.cjs
# Knowledge Graph agent CLI + its pure-JS core. Agents invoke `node
# <resources>/kg.cjs` out-of-process; kg-core.cjs ships beside it so the CLI's
# `require('./kg-core.cjs')` resolves outside the asar.
- from: resources/kg.cjs
to: kg.cjs
- from: src/main/kg-core.cjs
to: kg-core.cjs
# Bundled default skills (read-only/no-secret). copyBundledSkills() reads these
# from skillsResourceDir() = <process.resourcesPath>/skills in the packaged app
# and refreshes each agent's .claude/skills/ per spawn (dev resolves to
# repo resources/skills). Directory copy preserves the <id>/SKILL.md tree.
- from: resources/skills
to: skills
# Bundled Office Packs (the business types offered during onboarding).
# loadBundledPacks() reads these from packsResourceDir() =
# <process.resourcesPath>/packs in the packaged app; dev resolves to repo
# resources/packs. Plain JSON, no secrets, read-only at runtime.
- from: resources/packs
to: packs
asarUnpack:
- "**/node_modules/node-pty/**"
# better-sqlite3 is native (bindings/prebuild need the .node on the real FS).
- "**/node_modules/better-sqlite3/**"
# Rebuild native deps (node-pty) for the target during packaging.
npmRebuild: true
# ---- macOS ----
mac:
category: public.app-category.business
icon: build/icon.icns
# Declare WHY the app touches the user's folders. macOS shows these strings in
# the privacy prompt and, for a signed app, remembers the grant — so the user
# is asked ONCE instead of on every agent action.
extendInfo:
NSDocumentsFolderUsageDescription: "Don't Be Michael runs your AI team, which reads and writes files in the folders you give it."
NSDesktopFolderUsageDescription: "Your team in Don't Be Michael may work with files on your Desktop."
NSDownloadsFolderUsageDescription: "Your team in Don't Be Michael may work with files in your Downloads."
NSRemovableVolumesUsageDescription: "Your team in Don't Be Michael may work with files on external drives."
NSNetworkVolumesUsageDescription: "Your team in Don't Be Michael may work with files on network drives."
# Hardened runtime + entitlements so the spawned `claude` agents inherit this
# app's TCC responsibility (one grant covers them all) and node-pty can load.
hardenedRuntime: true
entitlements: build/entitlements.mac.plist
entitlementsInherit: build/entitlements.mac.plist
gatekeeperAssess: false
# Disable electron-builder's BUILT-IN notarization. It auto-triggers whenever the
# APPLE_* env vars are present and runs inside signApp, a path our hook does not
# control. Instead, the root-level `afterSign: build/notarize.cjs` hook notarizes and
# staples, and a failure stops the Mac release: a signed but unnotarized download
# still shows macOS's "cannot verify" warning.
notarize: false
# Signing: TCC binds a remembered grant to a STABLE code signature, so a signed
# build is asked for folder access ONCE. The "Developer ID Application" cert is
# auto-discovered from the login keychain (CSC_IDENTITY_AUTO_DISCOVERY). If no
# cert is found, electron-builder warns and produces an unsigned build, so
# contributors without an Apple account can still build.
# To sign: install your "Developer ID Application" cert into the keychain.
# CI imports it into its own keychain and sets CSC_KEYCHAIN (release.yml).
# Notarization happens in the root-level `afterSign` hook (top of this file).
# dmg is what humans download; zip is what Squirrel.Mac (electron-updater)
# actually updates from — latest-mac.yml points at it. Both universal.
target:
- target: dmg
arch: [universal]
- target: zip
arch: [universal]
artifactName: Dont-Be-Michael-${version}-mac-${arch}.${ext}
dmg:
title: "Don't Be Michael ${version}"
# ---- Windows ----
win:
icon: build/icon.ico
target:
- target: nsis
arch: [x64]
nsis:
oneClick: false
perMachine: false
allowToChangeInstallationDirectory: true
artifactName: Dont-Be-Michael-${version}-win-x64-setup.exe
shortcutName: "Don't Be Michael"
# No portable exe (R2, docs/designs/windows-11-installer.md): it never updates
# itself and does not register dontbemichael:// links.
# ---- Linux ----
linux:
category: Development
icon: build/icon.png
target:
- target: AppImage
arch: [x64]
artifactName: Dont-Be-Michael-${version}-linux-x86_64.AppImage