mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 15:39:59 -07:00
run create-tauri-app
command was: sh <(curl https://create.tauri.app/sh) the chosen options were: Project name · installer-gui Identifier · com.rayhunter-installer.app Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, deno, bun) Choose your package manager · npm Choose your UI template · Svelte - (https://svelte.dev/) Choose your UI flavor · TypeScript
This commit is contained in:
14
installer-gui/src-tauri/src/lib.rs
Normal file
14
installer-gui/src-tauri/src/lib.rs
Normal file
@@ -0,0 +1,14 @@
|
||||
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
|
||||
#[tauri::command]
|
||||
fn greet(name: &str) -> String {
|
||||
format!("Hello, {}! You've been greeted from Rust!", name)
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.invoke_handler(tauri::generate_handler![greet])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
6
installer-gui/src-tauri/src/main.rs
Normal file
6
installer-gui/src-tauri/src/main.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
installer_gui_lib::run()
|
||||
}
|
||||
Reference in New Issue
Block a user