Skip to content

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

Declare NSLocalNetworkUsageDescription for the mac package

Fei2411eadd28318cde
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index dbfc8987..2863a62e 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -50,6 +50,10 @@ mac:
hardenedRuntime: false
icon: assets/icon.png
category: public.app-category.productivity
+ # Without this key macOS registers no Local Network entry for the app and
+ # blocks LAN connections from tool processes outright ("No route to host").
+ extendInfo:
+ NSLocalNetworkUsageDescription: DeepSeek Bot runs commands that connect to devices on your local network.
linux:
# One AppImage runs on every distribution and updates itself; the deb is for Debian/Ubuntu,
# where it avoids Ubuntu 24.04's AppArmor question of an AppImage and adds a menu entry.
diff --git a/app/test/package.test.mjs b/app/test/package.test.mjs
index 57bba5a4..482466d4 100644
--- a/app/test/package.test.mjs
+++ b/app/test/package.test.mjs
@@ -40,3 +40,11 @@ test('the app has the version of ds-bot', () => {
const version = file => JSON.parse(readFileSync(new URL(file, import.meta.url), 'utf8')).version
assert.equal(version('../package.json'), version('../../ds-bot/package.json'))
})
+
+// Tool processes (bash, scripts a Bot runs) connect to devices on the local network;
+// macOS blocks them outright when Info.plist has no NSLocalNetworkUsageDescription.
+test('the mac package asks macOS for local network access', () => {
+ const config = parse(readFileSync(new URL('../electron-builder.yml', import.meta.url), 'utf8'))
+ assert.equal(typeof config.mac?.extendInfo?.NSLocalNetworkUsageDescription, 'string')
+ assert.notEqual(config.mac.extendInfo.NSLocalNetworkUsageDescription.trim(), '')
+})