mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
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:
2
frontend/appflowy_tauri/src-tauri/rust-toolchain.toml
Normal file
2
frontend/appflowy_tauri/src-tauri/rust-toolchain.toml
Normal file
@ -0,0 +1,2 @@
|
||||
[toolchain]
|
||||
channel = "1.65"
|
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user