You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
758 B
32 lines
758 B
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
// hide console window on Windows in release
|
|
|
|
pub use crate::node::Node;
|
|
pub use crate::app::App;
|
|
|
|
mod app;
|
|
mod node;
|
|
|
|
pub const TOR_DATA: &str = &"/tmp/tor-rust";
|
|
pub const TOR_LOG: &str = &"/tmp/tor-rust/tor.log";
|
|
pub const RADIO_STREAM: &str = &"radio.ogg";
|
|
pub const NODE_LOG: &str = &"node.log";
|
|
|
|
fn cleanup() {
|
|
let r: std::io::Result<()> = std::fs::remove_file(&RADIO_STREAM);
|
|
match r {
|
|
_ => ()
|
|
}
|
|
}
|
|
|
|
fn main() {
|
|
let app: app::App = app::App::default();
|
|
let options: eframe::NativeOptions = eframe::NativeOptions::default();
|
|
eframe::run_native(
|
|
"node gui",
|
|
options,
|
|
Box::new(|_cc| Box::new(app)),
|
|
);
|
|
let _ = cleanup();
|
|
}
|