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:
1 parent
a42dd1320b
commit
20e242628d
14 files changed
+157
-112
No files matched your search
@@ -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 (
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user