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

+1
View File
@@ -20,3 +20,4 @@ desktop = ["dioxus/desktop"]
native = ["dioxus/native"]
mobile = ["dioxus/mobile"]
server = ["dioxus/server", "dep:rusqlite"]
production = []
+1 -1
View File
@@ -11,7 +11,7 @@ COPY --from=planner /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/DioxusLabs/dioxus/refs/heads/main/.github/install.sh | bash
RUN /.cargo/bin/dx bundle --platform web
RUN /.cargo/bin/dx bundle --platform web --features production
FROM chef AS runtime
COPY --from=builder /app/target/dx/hotdog/release/web/ /usr/local/app
+1 -2
View File
@@ -4,8 +4,7 @@ use dioxus::prelude::*;
#[cfg(feature = "server")]
thread_local! {
static DB: std::sync::LazyLock<rusqlite::Connection> = std::sync::LazyLock::new(|| {
std::fs::create_dir("hotdogdb").unwrap();
let conn = rusqlite::Connection::open("hotdogdb/hotdog.db").expect("Failed to open database");
let conn = rusqlite::Connection::open(":memory:").expect("Failed to open database");
conn.execute_batch(
"CREATE TABLE IF NOT EXISTS dogs (
+2 -1
View File
@@ -15,7 +15,8 @@ enum Route {
}
fn main() {
#[cfg(not(feature = "server"))]
// only in production should we set the URL, otherwise let `dx` do the work
#[cfg(all(not(feature = "server"), feature = "production"))]
dioxus::fullstack::set_server_url("https://hot-dog.fly.dev");
dioxus::launch(app);