BIGWIP(android): trying to make an android release

fucking stupid shit why is it so hard
This commit is contained in:
2025-04-20 13:14:31 +01:00
parent 55cd552724
commit 58f60bf053
43 changed files with 911 additions and 16 deletions

View File

@@ -1,5 +1,4 @@
mod commands;
mod shortcut;
mod state;
mod utils;
mod window;
@@ -17,15 +16,9 @@ pub fn run() {
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_opener::init())
.manage(watcher_state)
.invoke_handler(tauri::generate_handler![
commands::handle_selected_folder,
shortcut::change_shortcut,
shortcut::unregister_shortcut,
shortcut::get_current_shortcut,
])
.invoke_handler(tauri::generate_handler![commands::handle_selected_folder,])
.setup(|app| {
setup_window(app)?;
shortcut::enable_shortcut(app);
Ok(())
})

View File

@@ -2,10 +2,10 @@ use tauri::App;
use tauri::{WebviewUrl, WebviewWindowBuilder};
pub fn setup_window(app: &mut App) -> Result<(), Box<dyn std::error::Error>> {
let win_builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::default())
.inner_size(480.0, 360.0)
.title("Haystack")
.resizable(false);
let win_builder = WebviewWindowBuilder::new(app, "main", WebviewUrl::default());
//.inner_size(480.0, 360.0)
//.title("Haystack")
//.resizable(false);
#[cfg(target_os = "macos")]
{