Skip to content

Commit

Permalink
支持华为欧拉系统EulerOS,区别于开源欧拉OpenEuler
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed May 22, 2024
1 parent 1f6dd16 commit 56a0d5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Stardust/Models/OSKindHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public static OSKinds ParseLinux(String osName, String osVersion)
if (osName.StartsWithIgnoreCase("OpenKylin")) return OSKinds.OpenKylin;
if (osName.StartsWithIgnoreCase("Linx")) return OSKinds.Linx;
if (osName.StartsWithIgnoreCase("openEuler")) return OSKinds.OpenEuler;
if (osName.Contains("EulerOS")) return OSKinds.EulerOS;

if (osName.Contains("Linux")) return OSKinds.Linux;
if (osName.Contains("Buildroot")) return OSKinds.Linux;
Expand Down
5 changes: 4 additions & 1 deletion Stardust/Models/OSKinds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ public enum OSKinds
/// <summary>凝思</summary>
Linx = 150,

/// <summary>欧拉</summary>
/// <summary>开源欧拉</summary>
OpenEuler = 160,

/// <summary>欧拉</summary>
EulerOS = 161,

/// <summary>MacOS</summary>
MacOSX = 200,

Expand Down

0 comments on commit 56a0d5b

Please sign in to comment.