Skip to content

How do i compile it into a single-file executable? #164

@GabrielBigardi

Description

@GabrielBigardi

Hi, i tried compiling it into a single-file executable as in the docs its stated:
"Both build.bun and each entry in build.views accept all Bun.build() options as pass-through properties. The only required field is entrypoint — everything else is optional"

However i got this error:

$ electrobun build
Using config file: electrobun.config.ts
Ensured launcher has .exe extension on Windows
Error adding Bun section to PE file: error.SectionExists
Fatal error: error: Failed to get temp file path: FileNotFound

error: script "build" exited with code 1

How can i compile it into a single-file, and without that console window that the launcher.exe has?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions