fix stutter in bundle, fix nsis, fix msi bundling (#5412)

* fix stutter in bundle, fix nsis, fix msi bundling

* fmt

* rename android libname to `libmain`, rename server exe to `server`

* fix hot-dog url handling

* set linux product name

* update schema
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2026-03-26 13:05:11 -07:00
1 parent a42dd1320b
commit 20e242628d
14 files changed
+157 -112

No files matched your search

+22 -7
View File
@@ -169,13 +169,28 @@ fn get_asset_root() -> PathBuf {
// $product_name/
// assets/
if cfg!(target_os = "linux") {
if let Some(product_name) = dioxus_cli_config::product_name() {
let path = cur_exe
.parent()
.and_then(|parent| parent.parent())
.map(|root| root.join("lib").join(product_name));
if let Some(asset_dir) = path.filter(|path| path.exists()) {
return asset_dir;
if let Some(lib_dir) = cur_exe
.parent()
.and_then(|parent| parent.parent())
.map(|root| root.join("lib"))
{
// Try the product name from the compile-time env var first
if let Some(product_name) = dioxus_cli_config::product_name() {
let path = lib_dir.join(&product_name);
if path.exists() {
return path;
}
}
// Fall back to scanning lib/ for a directory containing an `assets/` subfolder.
// This handles debug builds where DIOXUS_PRODUCT_NAME isn't baked in.
if let Ok(entries) = std::fs::read_dir(&lib_dir) {
for entry in entries.flatten() {
let path = entry.path();
if path.is_dir() && path.join("assets").is_dir() {
return path;
}
}
}
}
}