28 lines
818 B
Rust
Raw Normal View History

2023-04-06 14:18:26 +00:00
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
pub mod commands;
pub mod structs;
pub mod utils;
use commands::download_gamedata;
use specta::collect_types;
use tauri_specta::ts;
2023-04-06 14:18:26 +00:00
fn main() {
ts::export(collect_types![download_gamedata], "../src/tools/rusty.ts").unwrap();
// This is useful for custom eslint, prettier overrides at the top of the file.
// ts::export_with_cfg_with_header(
// collect_types![download_gamedata].unwrap(),
// Default::default(),
// "../src/tools/rusty.ts",
// "/* eslint-disable */\n".into(),
// )
// .unwrap();
2023-04-06 14:18:26 +00:00
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![download_gamedata])
2023-04-06 14:18:26 +00:00
.run(tauri::generate_context!())
.expect("error while running tauri application");
}