Giter Site home page Giter Site logo

Comments (5)

tensor-programming avatar tensor-programming commented on May 3, 2024

This is possible, we would have to add a feature flag and a output directory environment variable. I could cover the Rust side of things. Just need someone to add the simple JS/JSON stuff.

from tauri.

vhelke avatar vhelke commented on May 3, 2024

I hit this same problem since my target-path is different to default.

I have all the rust-targets at /rust/target/

Currently the tauri build fails for me with following info.

$ yarn tauri build
yarn run v1.22.4
$ /rust/tauri/node_modules/.bin/tauri build
[tauri]: running build
 app:spawn Running "cargo tauri-bundler --features embedded-server --release" +0ms

   Compiling app v0.1.0 (/rust/tauri/src-tauri)
   Compiling tauri v0.5.2
    Finished release [optimized] target(s) in 11.81s
    Bundling app_0.1.0_amd64.deb
error: Failed to build folders
  Caused by: Failed to copy binary file
  Caused by: "/rust/tauri/src-tauri/target/release/app" does not exist

 app:spawn Command "cargo" failed with exit code: 1 +0ms

 app:tauri (runner) ⚠️  [FAIL] Cargo CLI has failed +0ms

 app:tauri Shutting down tauri process... +0ms
error Command failed with exit code 1.

There should be a way in the tauri-config to set another target-dir.

from tauri.

nothingismagick avatar nothingismagick commented on May 3, 2024

We should revisit this.

from tauri.

lucasfernog avatar lucasfernog commented on May 3, 2024

Looks like an issue with the bundler, probably not following all of the Cargo output folder alternatives (env vars, config etc), so it's kind of unrelated to the original issue and should be tracked separately.

from tauri.

lucasfernog avatar lucasfernog commented on May 3, 2024

@vhelke your use case will be supported on the next release, see #895

Thank you for reporting it!

from tauri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.