Skip to content

Build fails in Cargo workspace #1007

Description

@nklayman

Describe the bug
If the Tauri project is inside of a Cargo workspace, the target dir will be different then usual. The bundle will fail when it tries to create installers as they look in src-tauri/target for the executable when it is really up 2 levels from that due to the workspace dist.

To Reproduce
Steps to reproduce the behavior:

  1. Create a tauri project inside of a Cargo workspace
  2. Try to build the project

Expected behavior
It should either output the executable to src-tauri/target and ignore the workspace dist dir or it should look in the proper dir for the executable when bundling the installers.

Screenshots
image

Platform and Versions (please complete the following information):
Any

Additional context
tauri-apps/vue-cli-plugin-tauri#20

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions