-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate to Tauri V2 #10
base: main
Are you sure you want to change the base?
Conversation
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" |
There was a problem hiding this comment.
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.
@@ -0,0 +1,182 @@ | |||
use anyhow::{anyhow, Result}; |
There was a problem hiding this comment.
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")]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll double check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now on src-tauri/src/main.rs
: https://github.com/ARK-Builders/ARK-Drop-Desktop/blob/3d8a92dc09ab9fe9b28b269f5760cc451b96ca6b/src-tauri/src/main.rs#L1C1-L2C67
tauri::Builder::default() | ||
.plugin(tauri_plugin_clipboard_manager::init()) | ||
.plugin(tauri_plugin_dialog::init()) | ||
.plugin(tauri_plugin_opener::init()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
handle.await.unwrap(); | ||
} | ||
|
||
let outpath = dirs::download_dir().unwrap(); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Looks good, let's fix minor issues and CI. |
No description provided.