Skip to content

Bevy uses wrong asset folder path when running from exe #22103

@Saratii

Description

@Saratii

Bevy version and features

0.17.3

[Optional] Relevant system information

windows 11

What you did

Ran bevy from executable instead of cargo run while in project root.

What went wrong

I expected it to find the assets folder based on the root of the project.
It instead checked for the assets folder inside of /target/release

If there is a config for this I would be happy to hear about it but I consider this a failure because it should work by default for such a simple action.

C:\Programming\project> .\target\release\project.exe
...
2025-12-13T06:55:22.794003Z ERROR bevy_asset::server: Path not found: C:\Programming\project\target\release\assets\texture.ktx2
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions