Skip to content

add --bundle-dir option to web subcommand#650

Open
musjj wants to merge 6 commits intoTheBevyFlock:mainfrom
musjj:bundle-dir
Open

add --bundle-dir option to web subcommand#650
musjj wants to merge 6 commits intoTheBevyFlock:mainfrom
musjj:bundle-dir

Conversation

@musjj
Copy link
Copy Markdown
Contributor

@musjj musjj commented Oct 18, 2025

Add an option for copying a packed web bundle directory to a user-specified directory. This lets you skip any error-prone parsing/guessing when locating the bundle directory, which is usually useful for CI-related tasks.

The behavior is modeled after the unstable --artifact-dir option from cargo:

Fix: #649

@musjj musjj force-pushed the bundle-dir branch 2 times, most recently from addf29a to ce6b483 Compare October 18, 2025 13:53
@DaAlbrecht DaAlbrecht added A-Web Building or running Bevy apps targeting the browser D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review The PR needs to be reviewed before it can be merged labels Oct 19, 2025
Copy link
Copy Markdown
Collaborator

@DaAlbrecht DaAlbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm open to this but do you think this is still needed even if the Bundle path is part of the API?

Copy link
Copy Markdown
Collaborator

@DaAlbrecht DaAlbrecht left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, wanted to just leave some comments, didn't mean to approve already

@BD103 BD103 added S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged and removed S-Needs-Review The PR needs to be reviewed before it can be merged labels Feb 10, 2026
@BD103
Copy link
Copy Markdown
Member

BD103 commented Feb 10, 2026

@musjj are you still willing to work on this PR? If not, I can label it so someone else can adopt the work! No pressure either way :)

@musjj
Copy link
Copy Markdown
Contributor Author

musjj commented Apr 5, 2026

Sorry for the incredibly long delay. But yeah, I'm still very much interested in this!

I think this feature is still helpful for reducing the guesswork that comes with copying bundle directories, even if target/web is stable API (you still need to infer the subdirectory name).

I've addressed the comments above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Web Building or running Bevy apps targeting the browser D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Programmatic way to locate web bundle path

3 participants