Skip to content

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

Add macOS package and CI support

Fei24112428413c0e42
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 607c7ea7..e09dd4cd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,8 +1,8 @@
name: Release
# Publishes ds-bot to npm when a GitHub release is published, then attaches the desktop app's
-# Windows installer, its block map and latest.yml to the release. The installed apps update
-# from the newest release: latest.yml names the installer and its sha512.
+# Windows installer and macOS DMGs to the release. Windows updates from latest.yml; macOS opens
+# the release page for a manual download.
#
# npm Trusted Publishing: npm trusts this workflow through GitHub's OIDC token, so the
# repository keeps no npm token, and every version gets a provenance statement. It is set
@@ -130,3 +130,36 @@ jobs:
run: |
installer="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-win-x64.exe"
gh release upload "$TAG" "$installer" "$installer.blockmap" dist-pack/latest.yml --clobber
+
+ app-macos:
+ name: Desktop app dmg (macOS ${{ matrix.arch }})
+ needs: publish
+ runs-on: ${{ matrix.runner }}
+ timeout-minutes: 45
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - { arch: arm64, runner: macos-latest }
+ - { arch: x64, runner: macos-26-intel }
+ defaults:
+ run:
+ shell: bash
+ working-directory: app
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 24
+ - run: npm ci --no-fund --no-audit
+ - run: npm run dist
+ - name: Check the packaged app
+ run: node scripts/check-packed.mjs
+ - name: Attach the dmg to the release
+ if: github.event_name == 'release'
+ env:
+ GH_TOKEN: ${{ github.token }}
+ TAG: ${{ github.event.release.tag_name }}
+ run: |
+ dmg="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.dmg"
+ gh release upload "$TAG" "$dmg" --clobber
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 867c4183..52dea34c 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -176,6 +176,52 @@ jobs:
if (Find-Entry 'HKCU:') { throw 'The uninstaller left its uninstall entry' }
foreach ($file in $kept) { if (-not (Test-Path $file)) { throw "The uninstaller removed $file" } }
+ app-package-macos:
+ name: Desktop app package (macOS ${{ matrix.arch }})
+ runs-on: ${{ matrix.runner }}
+ timeout-minutes: 45
+ strategy:
+ fail-fast: false
+ matrix:
+ include:
+ - { arch: arm64, runner: macos-latest }
+ - { arch: x64, runner: macos-26-intel }
+ defaults:
+ run:
+ shell: bash
+ working-directory: app
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 24
+ - run: npm ci --no-fund --no-audit
+ - run: npm run dist
+ - name: Check the DMG
+ run: |
+ dmg="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.dmg"
+ test -f "$dmg"
+ - name: Check the packaged app
+ run: node scripts/check-packed.mjs
+ - name: Install from the dmg and check
+ run: |
+ mkdir -p "$RUNNER_TEMP/dmg"
+ dmg="dist-pack/DeepSeek-Bot-$(node -p "require('./package.json').version")-mac-${{ matrix.arch }}.dmg"
+ hdiutil attach -nobrowse -readonly -mountpoint "$RUNNER_TEMP/dmg" "$dmg"
+ ditto "$RUNNER_TEMP/dmg/DeepSeek Bot.app" "/Applications/DeepSeek Bot.app"
+ hdiutil detach "$RUNNER_TEMP/dmg"
+ app="/Applications/DeepSeek Bot.app"
+ exe="$app/Contents/MacOS/DeepSeek Bot"
+ codesign --verify --deep --strict "$app"
+ file "$exe"
+ expected="${{ matrix.arch }}"
+ if [ "$expected" = x64 ]; then expected=x86_64; fi
+ file -b "$exe" | grep -F "$expected"
+ node scripts/check-packed.mjs "$exe"
+ node scripts/check-update.mjs "$exe" 99.0.0
+
docker:
name: Docker startup and data migration
runs-on: ubuntu-latest
@@ -220,8 +266,8 @@ jobs:
# and fails unless the matrix, leak scan, app, app package and Docker checks passed.
result:
name: Test result
- needs: [test, scan, app, app-package, docker]
+ needs: [test, scan, app, app-package, app-package-macos, docker]
if: always()
runs-on: ubuntu-latest
steps:
- - run: test "${{ needs.test.result }}" = success && test "${{ needs.scan.result }}" = success && test "${{ needs.app.result }}" = success && test "${{ needs.app-package.result }}" = success && test "${{ needs.docker.result }}" = success
+ - run: test "${{ needs.test.result }}" = success && test "${{ needs.scan.result }}" = success && test "${{ needs.app.result }}" = success && test "${{ needs.app-package.result }}" = success && test "${{ needs.app-package-macos.result }}" = success && test "${{ needs.docker.result }}" = success
diff --git a/app/electron-builder.yml b/app/electron-builder.yml
index 7a82729b..66e1ef2a 100644
--- a/app/electron-builder.yml
+++ b/app/electron-builder.yml
@@ -29,6 +29,9 @@ nsis:
multiLanguageInstaller: true
mac:
target: dmg
+ # Ad-hoc signing seals the bundle; no Developer ID or notarization.
+ identity: '-'
+ hardenedRuntime: false
icon: assets/icon.png
category: public.app-category.productivity
# Where the installed app looks for updates (app-update.yml in the package). The build writes