Skip to content

The agent that grows with you

fix(desktop): keep the DMG background out of the app bundle

ethernet82e8e9ec84c6
diff --git a/apps/desktop/electron-builder.config.cjs b/apps/desktop/electron-builder.config.cjs
index 814c25a9c62..af6ae0e1f83 100644
--- a/apps/desktop/electron-builder.config.cjs
+++ b/apps/desktop/electron-builder.config.cjs
@@ -184,8 +184,9 @@ module.exports = {
// A prebuilt .tiff on purpose, not a PNG plus a @2x sibling: dmg-builder's
// PNG path runs `tiffutil -cathidpicheck`, which on macOS 26 rewrites both
// frames to 72 dpi and silently drops the 2x representation. A .tiff is
- // handed to dmgbuild untouched (dmg-builder/dist/dmgUtil.js).
- background: 'assets/nous-dmg-2b.tiff',
+ // handed to dmgbuild untouched (dmg-builder/dist/dmgUtil.js), and living
+ // outside assets/ keeps it out of the app bundle via the `files` whitelist.
+ background: 'packaging/nous-dmg-2b.tiff',
iconSize: 96,
iconTextSize: 11,
window: {
diff --git a/apps/desktop/assets/nous-dmg-2b.tiff b/apps/desktop/packaging/nous-dmg-2b.tiff
similarity index 100%
rename from apps/desktop/assets/nous-dmg-2b.tiff
rename to apps/desktop/packaging/nous-dmg-2b.tiff