Skip to content

build as plain js bundle without embedded bun#33

Open
ralphptorres wants to merge 2 commits into
ProtonDriveApps:mainfrom
ralphptorres:feat/build-bundle
Open

build as plain js bundle without embedded bun#33
ralphptorres wants to merge 2 commits into
ProtonDriveApps:mainfrom
ralphptorres:feat/build-bundle

Conversation

@ralphptorres

@ralphptorres ralphptorres commented Jun 12, 2026

Copy link
Copy Markdown

bun build --compile embeds the bun runtime, producing a ~100 MB binary. this PR adds a --no-compile flag to build-cli.mjs and a build:bundle script that skips that, outputting a plain release/proton-drive.js (~a few MB) instead. useful for distros like arch linux that already ship bun and prefer system-managed runtimes

bun run build:bundle is the resulting command

callers are responsible for invoking the bundle with a wrapper: exec bun /path/to/proton-drive.js "$@"

allows building a plain js bundle without embedding the bun runtime,
useful for distribution packaging where bun is a system dependency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant