feat: support deepin OS (#444)
This commit is contained in:
@@ -63,7 +63,7 @@ impl Distribution {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Some("void") => Distribution::Void,
|
Some("void") => Distribution::Void,
|
||||||
Some("debian") | Some("pureos") => Distribution::Debian,
|
Some("debian") | Some("pureos") | Some("Deepin") => Distribution::Debian,
|
||||||
Some("arch") | Some("anarchy") | Some("manjaro-arm") | Some("garuda") | Some("artix") => Distribution::Arch,
|
Some("arch") | Some("anarchy") | Some("manjaro-arm") | Some("garuda") | Some("artix") => Distribution::Arch,
|
||||||
Some("solus") => Distribution::Solus,
|
Some("solus") => Distribution::Solus,
|
||||||
Some("gentoo") => Distribution::Gentoo,
|
Some("gentoo") => Distribution::Gentoo,
|
||||||
@@ -1011,4 +1011,9 @@ mod tests {
|
|||||||
fn test_pureos() {
|
fn test_pureos() {
|
||||||
test_template(include_str!("os_release/pureos"), Distribution::Debian);
|
test_template(include_str!("os_release/pureos"), Distribution::Debian);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_deepin() {
|
||||||
|
test_template(include_str!("os_release/deepin"), Distribution::Debian);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
8
src/steps/os/os_release/deepin
Normal file
8
src/steps/os/os_release/deepin
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
PRETTY_NAME="Deepin 20.9"
|
||||||
|
NAME="Deepin"
|
||||||
|
VERSION_ID="20.9"
|
||||||
|
VERSION="20.9"
|
||||||
|
VERSION_CODENAME="apricot"
|
||||||
|
ID=Deepin
|
||||||
|
HOME_URL="https://www.deepin.org/"
|
||||||
|
BUG_REPORT_URL="https://bbs.deepin.org/"
|
||||||
Reference in New Issue
Block a user