Optimize CLI binary build process by adding --minify flag for production builds

This commit is contained in:
dal 2025-09-09 09:36:53 -06:00
parent 42bf5859c8
commit 79a9d0e978
No known key found for this signature in database
GPG Key ID: 16F4B0E1E9F61122
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ jobs:
run: |
echo "📦 Building standalone CLI binary for ${{ matrix.target }}..."
# Note: Bun compiles for the host platform, cross-compilation happens via matrix strategy
bun build src/index.tsx --compile --outfile dist/buster-cli
# Using --minify for production builds to reduce binary size
bun build src/index.tsx --compile --minify --outfile dist/buster-cli
# Make binary executable on Unix systems
if [[ "${{ runner.os }}" != "Windows" ]]; then