mirror of
https://github.com/Xinrea/bili-shadowreplay.git
synced 2025-11-25 04:22:24 +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);
|
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(())
|
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,
|
"height": 600,
|
||||||
"transparent": false,
|
"transparent": false,
|
||||||
"decorations": true,
|
"decorations": true,
|
||||||
"theme": "Light",
|
"theme": "Light"
|
||||||
"windowEffects": {
|
|
||||||
"effects": ["tabbed", "mica"]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user