mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-24 20:15:34 +08:00
feat: add linux support (untested)
This commit is contained in:
@@ -614,7 +614,12 @@ async fn open_live(state: tauri::State<'_, State>, room_id: u64, ts: u64) -> Res
|
||||
log::error!("live window build failed: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
if let Err(e) = builder.decorations(true).build() {
|
||||
log::error!("live window build failed: {}", e);
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
17
src-tauri/tauri.linux.conf.json
Normal file
17
src-tauri/tauri.linux.conf.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"app": {
|
||||
"windows": [
|
||||
{
|
||||
"label": "main",
|
||||
"fullscreen": false,
|
||||
"resizable": true,
|
||||
"title": "BiliBili ShadowReplay",
|
||||
"width": 1300,
|
||||
"height": 600,
|
||||
"transparent": false,
|
||||
"decorations": true,
|
||||
"theme": "Light"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -10,10 +10,7 @@
|
||||
"height": 600,
|
||||
"transparent": false,
|
||||
"decorations": true,
|
||||
"theme": "Light",
|
||||
"windowEffects": {
|
||||
"effects": ["tabbed", "mica"]
|
||||
}
|
||||
"theme": "Light"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user