Fix search + linux build (#179)

This commit is contained in:
Geometrically
2023-06-20 22:04:17 -07:00
committed by GitHub
parent 8e5a0b8ae2
commit 4f9ec0e02b
7 changed files with 21 additions and 14 deletions

View File

@@ -39,6 +39,7 @@ tracing-error = "0.1"
sentry = "0.30"
sentry-rust-minidump = "0.5"
[target.'cfg(not(target_os = "linux"))'.dependencies]
window-shadows = "0.2.1"
[target.'cfg(target_os = "macos")'.dependencies]

View File

@@ -7,8 +7,6 @@ use theseus::prelude::*;
use tauri::Manager;
use window_shadows::set_shadow;
use tracing_error::ErrorLayer;
use tracing_subscriber::EnvFilter;
@@ -86,11 +84,16 @@ fn main() {
})
}
builder = builder.setup(|app| {
let win = app.get_window("main").unwrap();
set_shadow(&win, true).unwrap();
Ok(())
});
#[cfg(not(target_os = "linux"))]
{
use window_shadows::set_shadow;
builder = builder.setup(|app| {
let win = app.get_window("main").unwrap();
set_shadow(&win, true).unwrap();
Ok(())
});
}
#[cfg(target_os = "macos")]
{

View File

@@ -8,7 +8,7 @@
},
"package": {
"productName": "Modrinth App",
"version": "0.2.0"
"version": "0.2.1"
},
"tauri": {
"allowlist": {