2023-04-06 14:18:26 +00:00
|
|
|
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
|
|
|
2023-05-02 15:51:22 +01:00
|
|
|
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() {
|
2023-05-02 15:51:22 +01:00
|
|
|
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()
|
2023-05-02 15:51:22 +01:00
|
|
|
.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");
|
|
|
|
}
|