Use different release profiles for desktop and server builds, adhoc profiles (#3693)
* Use different release profiles for desktop and server builds * fix clippy * change the global cargo config instead of the local one * fix merge * fix release profile logic * use adhoc profile generation * fix compilation of dioxus-lib in fullstack --------- Co-authored-by: Jonathan Kelley <jkelleyrtp@gmail.com>
This commit is contained in:
1 parent
315854b449
commit
7d2a3aa751
4 files changed
+88
-66
No files matched your search
@@ -107,7 +107,9 @@ impl Workspace {
|
||||
}
|
||||
|
||||
pub fn is_release_profile(&self, profile: &str) -> bool {
|
||||
if profile == "release" {
|
||||
// If the profile is "release" or ends with "-release" like the default platform release profiles,
|
||||
// always put it in the release category.
|
||||
if profile == "release" || profile.ends_with("-release") {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user