mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-17 02:49:05 -07:00
commit
01dee97c44
@ -183,6 +183,14 @@ namespace MediaBrowser.Server.Mono.Native
|
|||||||
{
|
{
|
||||||
info.SystemArchitecture = Architecture.Arm;
|
info.SystemArchitecture = Architecture.Arm;
|
||||||
}
|
}
|
||||||
|
else if (System.Environment.Is64BitOperatingSystem)
|
||||||
|
{
|
||||||
|
info.SystemArchitecture = Architecture.X64;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
info.SystemArchitecture = Architecture.X86;
|
||||||
|
}
|
||||||
|
|
||||||
info.OperatingSystemVersionString = string.IsNullOrWhiteSpace(sysName) ?
|
info.OperatingSystemVersionString = string.IsNullOrWhiteSpace(sysName) ?
|
||||||
System.Environment.OSVersion.VersionString :
|
System.Environment.OSVersion.VersionString :
|
||||||
@ -198,14 +206,21 @@ namespace MediaBrowser.Server.Mono.Native
|
|||||||
if (_unixName == null)
|
if (_unixName == null)
|
||||||
{
|
{
|
||||||
var uname = new Uname();
|
var uname = new Uname();
|
||||||
|
try
|
||||||
|
{
|
||||||
Utsname utsname;
|
Utsname utsname;
|
||||||
var callResult = Syscall.uname(out utsname);
|
var callResult = Syscall.uname(out utsname);
|
||||||
if (callResult == 0)
|
if (callResult == 0)
|
||||||
{
|
{
|
||||||
uname.sysname = utsname.sysname;
|
uname.sysname = utsname.sysname ?? string.Empty;
|
||||||
uname.machine = utsname.machine;
|
uname.machine = utsname.machine ?? string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
Logger.ErrorException("Error getting unix name", ex);
|
||||||
|
}
|
||||||
_unixName = uname;
|
_unixName = uname;
|
||||||
}
|
}
|
||||||
return _unixName;
|
return _unixName;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
//[assembly: AssemblyVersion("3.1.*")]
|
//[assembly: AssemblyVersion("3.1.*")]
|
||||||
[assembly: AssemblyVersion("3.1.56")]
|
[assembly: AssemblyVersion("3.0.5984")]
|
||||||
|
Loading…
Reference in New Issue
Block a user