From 1ab0232d96210a913ee6a5f2eeca56ff5436e41d Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Sat, 27 May 2023 17:41:51 +0800 Subject: [PATCH] feat: support deepin OS (#444) --- src/steps/os/linux.rs | 7 ++++++- src/steps/os/os_release/deepin | 8 ++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 src/steps/os/os_release/deepin diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index 53ed1d9b..99ba94c4 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -63,7 +63,7 @@ impl Distribution { } 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("solus") => Distribution::Solus, Some("gentoo") => Distribution::Gentoo, @@ -1011,4 +1011,9 @@ mod tests { fn test_pureos() { test_template(include_str!("os_release/pureos"), Distribution::Debian); } + + #[test] + fn test_deepin() { + test_template(include_str!("os_release/deepin"), Distribution::Debian); + } } diff --git a/src/steps/os/os_release/deepin b/src/steps/os/os_release/deepin new file mode 100644 index 00000000..af88bb35 --- /dev/null +++ b/src/steps/os/os_release/deepin @@ -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/"