Skip to content

Migrate to Tauri V2#10

Closed
oluiscabral wants to merge 6 commits intoARK-Builders:mainfrom
oluiscabral:main
Closed

Migrate to Tauri V2#10
oluiscabral wants to merge 6 commits intoARK-Builders:mainfrom
oluiscabral:main

Conversation

@oluiscabral
Copy link
Copy Markdown

No description provided.

Comment thread src-tauri/Cargo.toml Outdated
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "ark_drop_desktop_lib"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to keep ark_drop_lib name, because the lib will be shared across different platforms, including Android and iOS devices. And maybe even browsers if we compile it to WebAssembly.

Comment thread src-tauri/src/lib.rs Outdated
@@ -0,0 +1,182 @@
use anyhow::{anyhow, Result};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these 2 lines from Alvi's PR?

Prevents additional console window on Windows in release, DO NOT REMOVE!!
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll double check

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src-tauri/src/lib.rs Outdated
tauri::Builder::default()
.plugin(tauri_plugin_clipboard_manager::init())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_opener::init())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread src-tauri/src/lib.rs Outdated
handle.await.unwrap();
}

let outpath = dirs::download_dir().unwrap();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we provide a default value for None case?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure. I didn't fully review this file, just copied from the current version

@kirillt
Copy link
Copy Markdown
Member

kirillt commented Dec 15, 2024

Looks good, let's fix minor issues and CI.

@pushkarm029 pushkarm029 mentioned this pull request Sep 12, 2025
@kirillt kirillt closed this Oct 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants