feat: add meta feature
This commit is contained in:
parent
1a31fa9067
commit
c51e9e6b2c
@ -52,7 +52,7 @@ windows-sys = { version = "0.36", features = ["Win32_System_LibraryLoader", "Win
|
|||||||
default = ["custom-protocol"]
|
default = ["custom-protocol"]
|
||||||
custom-protocol = ["tauri/custom-protocol"]
|
custom-protocol = ["tauri/custom-protocol"]
|
||||||
verge-dev = []
|
verge-dev = []
|
||||||
debug-yml = []
|
default-meta = []
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
panic = "abort"
|
panic = "abort"
|
||||||
|
@ -99,8 +99,14 @@ impl IVerge {
|
|||||||
|
|
||||||
pub fn template() -> Self {
|
pub fn template() -> Self {
|
||||||
Self {
|
Self {
|
||||||
clash_core: Some("clash".into()),
|
clash_core: match cfg!(feature = "default-meta") {
|
||||||
language: Some("en".into()),
|
false => Some("clash".into()),
|
||||||
|
true => Some("clash-meta".into()),
|
||||||
|
},
|
||||||
|
language: match cfg!(feature = "default-meta") {
|
||||||
|
false => Some("en".into()),
|
||||||
|
true => Some("zh".into()),
|
||||||
|
},
|
||||||
theme_mode: Some("system".into()),
|
theme_mode: Some("system".into()),
|
||||||
theme_blur: Some(false),
|
theme_blur: Some(false),
|
||||||
traffic_graph: Some(true),
|
traffic_graph: Some(true),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user