fix(stats): generated tar bundle for compiled dashboard assets
Generate a tar.gz bundle from stats dist/client during binary builds, embed it into the compiled binary, and extract/serve it at runtime in compiled mode instead of reading //root/client directly. Updated CI and build:binary flow to generate/reset the embedded bundle around compilation. Fixes #61
This commit is contained in:
@@ -172,6 +172,7 @@ jobs:
|
||||
|
||||
- name: Build binaries
|
||||
run: |
|
||||
bun --cwd=packages/stats scripts/generate-client-bundle.ts
|
||||
mkdir -p packages/coding-agent/binaries
|
||||
ENTRYPOINT="./packages/coding-agent/src/cli.ts"
|
||||
DEFINES="--define PI_COMPILED=true --root ."
|
||||
@@ -189,6 +190,7 @@ jobs:
|
||||
build_binary linux arm64 bun-linux-arm64 packages/coding-agent/binaries/omp-linux-arm64
|
||||
build_binary win32 x64 bun-windows-x64-modern packages/coding-agent/binaries/omp-windows-x64.exe
|
||||
bun --cwd=packages/natives run embed:native --reset
|
||||
bun --cwd=packages/stats scripts/generate-client-bundle.ts --reset
|
||||
- name: Stage native addons for release
|
||||
run: cp packages/natives/native/*.node packages/coding-agent/binaries/
|
||||
- name: Create GitHub Release
|
||||
|
||||
Reference in New Issue
Block a user