Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Ship office.js unpacked in the desktop app

Fei2411d4d6a6f132cd
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index 057fd90b..dbfc8987 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -13,6 +13,8 @@ files:
asarUnpack:
- node_modules/pnpm/**
- node_modules/@deepseek-ai/libreoffice-kit/**
+ # The payload Node cannot read office.js through the asar.
+ - node_modules/ds-bot/office.js
# Automatic unpacking misses versioned Linux libraries such as libvips-cpp.so.8.18.7.
- node_modules/@img/sharp*/**
# The Office payload that scripts/prepare-runtime.mjs writes in beforePack (see package.json's
diff --git a/app/scripts/check-packed.mjs b/app/scripts/check-packed.mjs
index 15b976ed..fdb971fc 100644
--- a/app/scripts/check-packed.mjs
+++ b/app/scripts/check-packed.mjs
@@ -41,6 +41,7 @@ if (!existsSync(executable)) {
join('primary-runtime', 'dependencies', 'node', 'bin', windows ? 'node.exe' : 'node'),
join('office-skills', 'office', 'SKILL.md'),
join('app.asar.unpacked', 'node_modules', '@deepseek-ai', 'libreoffice-kit', 'lib', 'cli.js'),
+ join('app.asar.unpacked', 'node_modules', 'ds-bot', 'office.js'),
]
const missing = required.filter((entry) => !existsSync(join(resources, entry)))
if (missing.length > 0) {