Skip to content

beforeBuildCommand not executed in the correct directory #4

@gworkman

Description

@gworkman

First off, thank you for making this! I got started on building a desktop app last week after seeing your talk at ElixirConf EU, and it has been incredibly easy to work with!

We're now at the point where I want to build some binaries and distribute to others for testing. I'm running into some issues when following the docs. The beforeBuildCommand specified in the docs attempts to compile the mix project from the src-tauri directory. I ended up changing it from:

"beforeBuildCommand": "MIX_ENV=prod mix do compile + assets.deploy + release --overwrite --path src-tauri/target/rel"

to:

"beforeBuildCommand": "cd .. && MIX_ENV=prod mix do compile + assets.deploy + release --overwrite --path src-tauri/target/rel"

This gets it to build, but not sure this is the best way to do this/if it interferes with other paths when building binaries or signing releases (haven't got that far yet)

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