Skip to content

DevTools in release mode #3059

Answered by FabianLars
rdwnsjjd asked this question in Q&A
Dec 12, 2021 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

This got answered on discord. For others who are searching for this here is the answer:
There are two methods:

  1. Build the whole app in debug mode (tauri build --debug). The binary will end up in target/debug! This of course is not actually in release mode, but the bundler etc. will do the same as they would in the actual release mode. The only difference is how rust compiles the binaries.
  2. Build the app in release mode but wry in debug mode. The binary will end up in target/release! For this you need to add the following to your Cargo.toml file. Edit: This answer was posted for 1.0.0-beta versions, for rc and beyond see the "Edit" section at the end of this comment.
[profile.release.package.

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@Lantianyou
Comment options

@FabianLars
Comment options

@Lantianyou
Comment options

Answer selected by FabianLars
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@liudonghua123
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants