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
@@ -185,4 +185,21 @@ impl Platform {
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn profile_name(&self, release: bool) -> String {
|
||||
let base_profile = match self {
|
||||
Platform::MacOS | Platform::Windows | Platform::Linux => "desktop",
|
||||
Platform::Web => "web",
|
||||
Platform::Ios => "ios",
|
||||
Platform::Android => "android",
|
||||
Platform::Server => "server",
|
||||
Platform::Liveview => "liveview",
|
||||
};
|
||||
|
||||
if release {
|
||||
format!("{}-release", base_profile)
|
||||
} else {
|
||||
format!("{}-dev", base_profile)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user