feat: ship bun runtime with binary signing (#391)

* feat: add bun binary signing for macOS and Windows

Register the bun runtime binary in the code signing pipelines so it gets
properly signed and notarized alongside browseros_server and codex.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* feat: add bun runtime download and copy resource configs

Add bun binary entries for all platform/arch combos (macOS arm64/x64,
Linux arm64/x64, Windows x64) to download from R2 and copy into the
Chromium build output alongside browseros_server.

Also adds the server bundle (index.js) download and copy entries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Nikhil
2026-03-03 11:59:23 -08:00
committed by GitHub
parent d33a1745b4
commit f97d74661b
4 changed files with 88 additions and 0 deletions

View File

@@ -123,3 +123,45 @@ copy_operations:
type: "file"
os: ["windows"]
arch: ["x64"]
# Bun Runtime - Platform & Architecture specific
- name: "Bun Runtime - macOS ARM64"
source: "resources/binaries/bun/bun-darwin-arm64"
destination: "chrome/browser/browseros/server/resources/bin/bun"
type: "file"
os: ["macos"]
arch: ["arm64"]
- name: "Bun Runtime - macOS x64"
source: "resources/binaries/bun/bun-darwin-x64"
destination: "chrome/browser/browseros/server/resources/bin/bun"
type: "file"
os: ["macos"]
arch: ["x64"]
- name: "Bun Runtime - Linux ARM64"
source: "resources/binaries/bun/bun-linux-arm64"
destination: "chrome/browser/browseros/server/resources/bin/bun"
type: "file"
os: ["linux"]
arch: ["arm64"]
- name: "Bun Runtime - Linux x64"
source: "resources/binaries/bun/bun-linux-x64"
destination: "chrome/browser/browseros/server/resources/bin/bun"
type: "file"
os: ["linux"]
arch: ["x64"]
- name: "Bun Runtime - Windows x64"
source: "resources/binaries/bun/bun-windows-x64.exe"
destination: "chrome/browser/browseros/server/resources/bin/bun.exe"
type: "file"
os: ["windows"]
arch: ["x64"]
# BrowserOS Server Bundle (platform-independent)
- name: "BrowserOS Server Bundle"
source: "resources/binaries/browseros_server/index.js"
destination: "chrome/browser/browseros/server/resources/index.js"
type: "file"

View File

@@ -62,3 +62,43 @@ download_operations:
destination: "resources/binaries/browseros_server/browseros-server-windows-x64.exe"
os: ["windows"]
arch: ["x64"]
# Bun Runtime - Platform & Architecture specific
- name: "Bun Runtime - macOS ARM64"
r2_key: "binaries/bun/bun-darwin-arm64"
destination: "resources/binaries/bun/bun-darwin-arm64"
os: ["macos"]
arch: ["arm64"]
executable: true
- name: "Bun Runtime - macOS x64"
r2_key: "binaries/bun/bun-darwin-x64"
destination: "resources/binaries/bun/bun-darwin-x64"
os: ["macos"]
arch: ["x64"]
executable: true
- name: "Bun Runtime - Linux ARM64"
r2_key: "binaries/bun/bun-linux-arm64"
destination: "resources/binaries/bun/bun-linux-arm64"
os: ["linux"]
arch: ["arm64"]
executable: true
- name: "Bun Runtime - Linux x64"
r2_key: "binaries/bun/bun-linux-x64"
destination: "resources/binaries/bun/bun-linux-x64"
os: ["linux"]
arch: ["x64"]
executable: true
- name: "Bun Runtime - Windows x64"
r2_key: "binaries/bun/bun-windows-x64.exe"
destination: "resources/binaries/bun/bun-windows-x64.exe"
os: ["windows"]
arch: ["x64"]
# BrowserOS Server Bundle (platform-independent)
- name: "BrowserOS Server Bundle"
r2_key: "binaries/browseros-server/index.js"
destination: "resources/binaries/browseros_server/index.js"

View File

@@ -34,6 +34,11 @@ BROWSEROS_SERVER_BINARIES: Dict[str, Dict[str, str]] = {
"options": "runtime",
"entitlements": "browseros-executable-entitlements.plist",
},
"bun": {
"identifier_suffix": "bun",
"options": "runtime",
"entitlements": "browseros-executable-entitlements.plist",
},
}

View File

@@ -19,6 +19,7 @@ from ...common.utils import (
BROWSEROS_SERVER_BINARIES: List[str] = [
"browseros_server.exe",
"codex.exe",
"bun.exe",
]