summaryrefslogtreecommitdiff
path: root/scripts/copy_bundle_assets.sh
diff options
context:
space:
mode:
authorTaylor Mullen <[email protected]>2025-05-08 16:09:26 -0700
committerN. Taylor Mullen <[email protected]>2025-05-08 23:36:42 -0700
commit41b82ce7964e8084a0ad1958d59c0249b354f132 (patch)
treeb925d82cfccb7df80b760874c940183389d49e1b /scripts/copy_bundle_assets.sh
parent1c486a40501baf7ab675383efe23c36508a9f24c (diff)
Add bundling support.
- This can now be invoked with `npm run bundle`, it creates a `bundle/` folder that has: - gemini.js - sandbox-macos-minimal.sb - sandbox-macos-strict.sb - shell.json - shell.md - This doesn't include any sort of automation for auto bundling pieces. It's just the root capability which we can weave into other locations. Fixes https://b.corp.google.com/issues/411432723
Diffstat (limited to 'scripts/copy_bundle_assets.sh')
-rwxr-xr-xscripts/copy_bundle_assets.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/copy_bundle_assets.sh b/scripts/copy_bundle_assets.sh
new file mode 100755
index 00000000..ec16ddc5
--- /dev/null
+++ b/scripts/copy_bundle_assets.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+# Create the bundle directory if it doesn't exist
+mkdir -p bundle
+
+# Copy specific shell files to the root of the bundle directory
+cp "packages/server/src/tools/shell.md" "bundle/shell.md"
+cp "packages/server/src/tools/shell.json" "bundle/shell.json"
+
+# Find and copy all .sb files from packages to the root of the bundle directory
+find packages -name '*.sb' -exec cp -f {} bundle/ \;
+
+echo "Assets copied to bundle/"