diff --git a/.DS_Store b/.DS_Store index 703b91c..93cdd10 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.gitignore b/.gitignore index 5f64cb8..94be40d 100644 --- a/.gitignore +++ b/.gitignore @@ -13,5 +13,5 @@ Cargo.lock # Added by cargo /target - -/dist \ No newline at end of file +/dist +.vercel diff --git a/Cargo.toml b/Cargo.toml index 9ed4489..4971cd0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,6 @@ edition = "2021" [dependencies] dioxus = "0.3.0" dioxus-web = "0.3.0" -log = "0.4.6" wasm-logger = "0.2.0" console_error_panic_hook = "0.1.7" rand = "0.8.5" diff --git a/README.md b/README.md index 4eb2ca7..f760d16 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ ## 2048 Game in Disxus +Live Demo -> https://rust-2048.vercel.app/ + ### Test and run (Web) ``` dioxus serve diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..4371c67 --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y + +source "$HOME/.cargo/env" + +cargo install dioxus-cli + +dioxus build --release \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 59dc6cb..499a34f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,8 +5,8 @@ use crate::components::board::Board; fn main() { // init debug tool for WebAssembly - wasm_logger::init(wasm_logger::Config::default()); - console_error_panic_hook::set_once(); + // wasm_logger::init(wasm_logger::Config::default()); + // console_error_panic_hook::set_once(); dioxus_web::launch(app); }