Fix Windows binary path resolution for Bun compiled executable

This commit is contained in:
badlogic 2025-12-02 12:58:00 +01:00
parent 468acdf0d6
commit ccae220032
4 changed files with 91 additions and 79 deletions

View file

@ -2,6 +2,10 @@
## [Unreleased]
### Fixed
- **Windows Binary Path Resolution**: Fixed Bun compiled binary on Windows failing to find `package.json` and other assets. The binary was incorrectly using the Bun runtime's virtual filesystem path (`B:\~BUN\`) instead of the actual executable location. Now uses `process.execPath` which correctly points to the compiled binary, and updated detection to check for `%7EBUN` (URL-encoded `~BUN`) in `import.meta.url`.
## [0.12.1] - 2025-12-02
### Changed