-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
[feat] cargo profile support #6255
Comments
try |
Looks like it will conflict with the |
Any chance to get it in |
this is already fixed in v1 as well |
Right it just needs the [profile.testing]
inherits = "dev" # after removing target dir
$ tauri -- build --debug -- --profile=testing
Finished `testing` profile [unoptimized + debuginfo] target(s) in 49.67s
Error failed to rename `C:\Users\buk\WebstormProjects\ck3oop\target\debug\ck3oop-ui-rs.exe` to
`C:\Users\buk\WebstormProjects\ck3oop\target\debug\ck3oop-ui.exe`: The system cannot find the path specified. (os error 3) Looks like tauri wants to rename something post building but with different profile it just can't? [package]
name = "ck3oop-ui-rs" "package": {
"productName": "ck3oop-ui",
}, |
It doesn't need
It indeed will try to rename your rust binary from |
Oh of course, thank you. It's all about |
I will open a PR to fix this, we should handle that case |
* fix(cli): parse `--profile=<profile>` syntax ref: #6255 (comment) * Update tooling/cli/src/interface/rust.rs * safe check next arg * add test --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
* fix(cli): parse `--profile=<profile>` syntax ref: #6255 (comment) * Update tooling/cli/src/interface/rust.rs * derive default * safe check next arg --------- Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
Describe the problem
when we have multiples build variant like dev/stagging/production/beta/alpha/etc... the debug flag is not enough
Describe the solution you'd like
add an option to the cli like
tauri build --profile foobar
Alternatives considered
No response
Additional context
for now I have to use a custom py script which take a kind of profile, build tauri via subprocess.run then go to
/targets/<triples-target>/release(or debug)/bundle/msi/name-version-arch.zip
to a folder according to the given profile.The text was updated successfully, but these errors were encountered: