diff --git a/packages/browseros/build/config/copy_resources.yaml b/packages/browseros/build/config/copy_resources.yaml index d725d738c..1dd9928e9 100644 --- a/packages/browseros/build/config/copy_resources.yaml +++ b/packages/browseros/build/config/copy_resources.yaml @@ -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" diff --git a/packages/browseros/build/config/download_resources.yaml b/packages/browseros/build/config/download_resources.yaml index d4f09a24b..a7aa1c3fb 100644 --- a/packages/browseros/build/config/download_resources.yaml +++ b/packages/browseros/build/config/download_resources.yaml @@ -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" diff --git a/packages/browseros/build/modules/sign/macos.py b/packages/browseros/build/modules/sign/macos.py index 23ba2b189..ac815cb50 100644 --- a/packages/browseros/build/modules/sign/macos.py +++ b/packages/browseros/build/modules/sign/macos.py @@ -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", + }, } diff --git a/packages/browseros/build/modules/sign/windows.py b/packages/browseros/build/modules/sign/windows.py index ba9e58950..1263049eb 100644 --- a/packages/browseros/build/modules/sign/windows.py +++ b/packages/browseros/build/modules/sign/windows.py @@ -19,6 +19,7 @@ from ...common.utils import ( BROWSEROS_SERVER_BINARIES: List[str] = [ "browseros_server.exe", "codex.exe", + "bun.exe", ]