ci: add tauri ci (#1833)

* ci: add tauri ci

* ci: update install windows scripts

* Update tauri_ci.yaml

* Update tauri_ci.yaml

* ci: update
This commit is contained in:
Nathan.fooo
2023-02-10 14:30:34 +08:00
committed by GitHub
parent 72768a2f77
commit cbd351453d
16 changed files with 113 additions and 31 deletions

View File

@ -0,0 +1,2 @@
[toolchain]
channel = "1.65"

View File

@ -14,10 +14,10 @@ use request::*;
use tauri::Manager;
fn main() {
let sdk = init_flowy_core();
let flowy_core = init_flowy_core();
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![invoke_request])
.manage(sdk)
.manage(flowy_core)
.on_window_event(|_window_event| {})
.on_menu_event(|_menu| {})
.on_page_load(|window, _payload| {
@ -29,7 +29,8 @@ fn main() {
});
})
.setup(|app| {
if cfg!(debug_assertions) {
#[cfg(debug_assertions)]
{
let window = app.get_window("main").unwrap();
window.open_devtools();
}