Comments (5)
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.
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.
We should revisit this.
from tauri.
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.
@vhelke your use case will be supported on the next release, see #895
Thank you for reporting it!
from tauri.
Related Issues (20)
- [bug] crash win10 development HOT 1
- [bug] `always_on_bottom` fails to set window to bottom when created on Windows HOT 5
- [bug] bundle builder should not use conditional compilation to determine target platform
- [bug] x86 cross compile to riscv, leptos, Unable to determine target-architecture HOT 1
- [bug] "cargo install tauri-cli --version "^2.0.0-beta"" fails to build on Windows 11 HOT 1
- [bug] Platform-Specific Configuration seems broken HOT 9
- [bug] [windows updater] updating tauri apps using updater fails if installed to `C:\Program Files` HOT 1
- [bug] window white flashing on exit on Windows HOT 1
- [bug] cannot fix the position of a webview and set auto_resize at the same time
- [bug] Couldn't find callback id x in window. This happens when the app is reloaded while Rust is running an asynchronous operation HOT 1
- [bug] Failed to assemble APK: Permission denied (os error 13) on macOS
- [feat][v2] add ability to handle app activation on macOS HOT 1
- [bug] terminal output missing in release build on Windows 10 HOT 1
- [Question] NPM install of api and plugins HOT 1
- [bug] shell open crash on Windows
- [bug] tauri dev command uses "frontendDist" instead of "devUrl" HOT 1
- [bug] [v1][macos] _MASReceipt prevents bundle from being deleted
- [bug] [v2] when enable unstable feature,the window just can resize from top bar. HOT 1
- [bug] can't build for. universal mac on intel mac HOT 6
- [bug] cli: tauri icon fails but returns exit code 0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tauri.