-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build fails in Cargo workspace #1007
Comments
Having the same issue, tried to workaround it by adding a [build]
target-dir = "src-tauri/target" But couldn't make it work 😢 had to move all my code to its own repository for now. Update Made it work by using full path in
|
I've found similar workaround which doesn't need embedding the full path. Instead of modifying "scripts": {
"tauri": "CARGO_BUILD_TARGET_DIR=$(pwd)/src-tauri/target tauri",
|
The tauri bundler has some logic to detect workspaces, I guess it's not working properly. I'll investigate. |
Closed by #1235 |
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:
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

Platform and Versions (please complete the following information):
Any
Additional context
tauri-apps/vue-cli-plugin-tauri#20
The text was updated successfully, but these errors were encountered: