update next.js with new tauri setup

This commit is contained in:
tensor-programming 2019-12-24 13:33:34 -05:00
parent b1eef09c4a
commit caf5f198ea
3 changed files with 25 additions and 4 deletions

View File

@ -9,6 +9,7 @@ license = ""
repository = ""
default-run = "app"
edition = "2018"
build = "src/build.rs"
[package.metadata.bundle]
identifier = "com.tauri.dev"
@ -22,13 +23,16 @@ icon = [
[dependencies]
serde_json = "1.0.41"
serde = "1.0"
serde_derive = "1.0"
serde = "1.0.104"
serde_derive = "1.0.104"
tiny_http = "0.6"
phf = "0.7.24"
includedir = "0.5.0"
phf = "0.8.0"
tauri_includedir = "0.5.0"
tauri = { version = "0.2.0", features = [ "edge" ] }
[target."cfg(windows)".build-dependencies]
winres = "0.1"
[features]
dev-server = [ "tauri/dev-server" ]
embedded-server = [ "tauri/embedded-server" ]

View File

@ -0,0 +1,12 @@
#[cfg(windows)]
extern crate winres;
#[cfg(windows)]
fn main() {
let mut res = winres::WindowsResource::new();
res.set_icon("icons/icon.ico");
res.compile().expect("Unable to find visual studio tools");
}
#[cfg(not(windows))]
fn main() {}

View File

@ -1,3 +1,8 @@
#![cfg_attr(
all(not(debug_assertions), target_os = "windows"),
windows_subsystem = "windows"
)]
mod cmd;
#[macro_use]