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:
Evan AlmloffandJonathan Kelley authored and GitHub committed 2025-06-18 17:58:39 -07:00
1 parent 315854b449
commit 7d2a3aa751
4 files changed
+88 -66

No files matched your search

+3 -1
View File
@@ -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;
}