Fix asset location for linux bundles (#4460)

* fix linux bundle

* fix release mode

* fix resource path

* only use asset dir if it exists

* add comment about directory structure

* don't unwrap parent
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-07-23 17:47:41 -07:00
1 parent 66c2dac38f
commit 15d369f10f
3 files changed
+28 -2

No files matched your search

+6
View File
@@ -64,6 +64,7 @@ pub const DEVSERVER_PORT_ENV: &str = "DIOXUS_DEVSERVER_PORT";
pub const ALWAYS_ON_TOP_ENV: &str = "DIOXUS_ALWAYS_ON_TOP";
pub const ASSET_ROOT_ENV: &str = "DIOXUS_ASSET_ROOT";
pub const APP_TITLE_ENV: &str = "DIOXUS_APP_TITLE";
pub const PRODUCT_NAME_ENV: &str = "DIOXUS_PRODUCT_NAME";
#[deprecated(since = "0.6.0", note = "The CLI currently does not set this.")]
#[doc(hidden)]
@@ -327,3 +328,8 @@ pub fn build_id() -> u64 {
.unwrap_or(0)
}
}
/// The product name of the bundled application.
pub fn product_name() -> Option<String> {
read_env_config!("DIOXUS_PRODUCT_NAME")
}