Skip to content
Snippets Groups Projects
Verified Commit a532e700 authored by Miniontoby's avatar Miniontoby :writing_hand_tone1:
Browse files

Platform specific code should now work

parent 764fc4b4
No related branches found
No related tags found
No related merge requests found
......@@ -73,20 +73,6 @@ version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca"
[[package]]
name = "app"
version = "0.1.1"
dependencies = [
"notify-rust",
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-dialog",
"tauri-plugin-notification",
"tauri-plugin-updater",
]
[[package]]
name = "as-raw-xcb-connection"
version = "1.0.1"
......@@ -2757,6 +2743,20 @@ version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2900ede94e305130c13ddd391e0ab7cbaeb783945ae07a279c268cb05109c6cb"
[[package]]
name = "plan2go_desktop"
version = "0.1.2"
dependencies = [
"notify-rust",
"serde",
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-dialog",
"tauri-plugin-notification",
"tauri-plugin-updater",
]
[[package]]
name = "plist"
version = "1.6.0"
......
......@@ -13,7 +13,8 @@ pub fn run() {
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_notification::init())
.setup(|app| {
if cfg!(desktop) {
#[cfg(desktop)]
{
app.handle().plugin(tauri_plugin_updater::Builder::new().build())?;
let hide = MenuItemBuilder::with_id("togglehideshow", "Hide").build(app)?;
......@@ -62,7 +63,8 @@ pub fn run() {
}
Ok(())
});
if cfg!(desktop) {
#[cfg(desktop)]
{
builder
.build(tauri::generate_context!())
.expect("error while building tauri application")
......@@ -116,7 +118,9 @@ pub fn run() {
}
_ => {}
}); // End of '.run(..., {'
} else {
}
#[cfg(not(desktop))]
{
builder
.run(tauri::generate_context!())
.expect("error while running tauri application");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment