Serein
Serein copied to clipboard
添加BSD支持
我试着在FreeBSD下编译了项目:
[root@FreeBSD ~/Serein]# dotnet build src/Serein.Cli/Serein.Cli.csproj
MSBuild version 17.8.5+b5265ef37 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
Serein.ConnectionProtocols -> /root/Serein/src/Serein.ConnectionProtocols/bin/Debug/net8.0/Serein.ConnectionProtocols.dll
Serein.Core -> /root/Serein/src/Serein.Core/bin/Debug/net8.0/Serein.Core.dll
Serein.Cli -> /root/Serein/src/Serein.Cli/bin/Debug/net8.0/Serein.Cli.dll
Build succeeded.
0 Warning(s)
0 Error(s)
Time Elapsed 00:00:01.38
[root@FreeBSD ~/Serein]# fastfetch
``` ` root@FreeBSD
` `.....---.......--.``` -/ ------------
+o .--` /y:` +. Host: Ubuntu 24.04 PC (i440FX + PIIX, 1996) (pc-i440fx-noble)
yo`:. :o `+- Kernel: FreeBSD 14.3-RELEASE
y/ -/` -o/ Uptime: 1 hour, 40 mins
.- ::/sy+:. Shell: bash 5.3.3
/ `-- / Terminal: /dev/pts/0
`: :` CPU: AMD Ryzen 5 3500X (2) @ 3.59 GHz
`: :` GPU: Red Hat, Inc. QXL paravirtual graphic card
/ / Memory: 7.76 GiB / 15.96 GiB (49%)
.- -. Swap: 0 B / 2.00 GiB (0%)
-- -. Disk (/): 674.66 MiB / 243.37 GiB (0%) - zfs
`:` `:` Disk (/zroot): 96.00 KiB / 242.71 GiB (0%) - zfs
.-- `--. Local IP (vtnet0): 192.168.122.100/24
.---.....----. Locale: C.UTF-8
[root@FreeBSD ~/Serein]# dotnet --version
8.0.102
[root@FreeBSD ~/Serein]# cd /root/Serein/src/Serein.Cli/bin/Debug/net8.0
[root@FreeBSD ~/Serein/src/Serein.Cli/bin/Debug/net8.0]# ls
Acornima.dll NCrontab.dll
DeepCloner.dll Octokit.dll
EmbedIO.dll PrettyPrompt.dll
Fleck.dll Pty.Net.dll
Hardware.Info.dll SQLitePCLRaw.batteries_v2.dll
Jint.dll SQLitePCLRaw.core.dll
Microsoft.Data.Sqlite.dll SQLitePCLRaw.provider.e_sqlite3.dll
Microsoft.Diagnostics.FastSerialization.dll Sentry.Profiling.dll
Microsoft.Diagnostics.NETCore.Client.dll Sentry.dll
Microsoft.Diagnostics.Tracing.TraceEvent.dll Serein
Microsoft.EntityFrameworkCore.Abstractions.dll Serein.Cli
Microsoft.EntityFrameworkCore.Relational.dll Serein.Cli.deps.json
Microsoft.EntityFrameworkCore.Sqlite.dll Serein.Cli.dll
Microsoft.EntityFrameworkCore.dll Serein.Cli.pdb
Microsoft.Extensions.Caching.Abstractions.dll Serein.Cli.runtimeconfig.json
Microsoft.Extensions.Caching.Memory.dll Serein.ConnectionProtocols.dll
Microsoft.Extensions.Configuration.Abstractions.dll Serein.ConnectionProtocols.pdb
Microsoft.Extensions.Configuration.Binder.dll Serein.Core.dll
Microsoft.Extensions.Configuration.CommandLine.dll Serein.Core.pdb
Microsoft.Extensions.Configuration.EnvironmentVariables.dll SuperSocket.ClientEngine.dll
Microsoft.Extensions.Configuration.FileExtensions.dll Swan.Lite.dll
Microsoft.Extensions.Configuration.Json.dll System.CodeDom.dll
Microsoft.Extensions.Configuration.UserSecrets.dll System.CommandLine.dll
Microsoft.Extensions.Configuration.dll System.Configuration.ConfigurationManager.dll
Microsoft.Extensions.DependencyInjection.Abstractions.dll System.Diagnostics.EventLog.dll
Microsoft.Extensions.DependencyInjection.dll System.Diagnostics.PerformanceCounter.dll
Microsoft.Extensions.DependencyModel.dll System.Management.dll
Microsoft.Extensions.Diagnostics.Abstractions.dll System.Security.Cryptography.ProtectedData.dll
Microsoft.Extensions.Diagnostics.dll System.Text.Json.dll
Microsoft.Extensions.FileProviders.Abstractions.dll TextCopy.dll
Microsoft.Extensions.FileProviders.Physical.dll WebSocket4Net.dll
Microsoft.Extensions.FileSystemGlobbing.dll cs
Microsoft.Extensions.Hosting.Abstractions.dll de
Microsoft.Extensions.Hosting.dll es
Microsoft.Extensions.Logging.Abstractions.dll fr
Microsoft.Extensions.Logging.Configuration.dll it
Microsoft.Extensions.Logging.Console.dll ja
Microsoft.Extensions.Logging.Debug.dll ko
Microsoft.Extensions.Logging.EventLog.dll pl
Microsoft.Extensions.Logging.EventSource.dll pt-BR
Microsoft.Extensions.Logging.dll ru
Microsoft.Extensions.Options.ConfigurationExtensions.dll runtimes
Microsoft.Extensions.Options.dll tr
Microsoft.Extensions.Primitives.dll zh-Hans
MineStat.dll zh-Hant
[root@FreeBSD ~/Serein/src/Serein.Cli/bin/Debug/net8.0]# ./Serein.Cli
01:56:46 Warn [SereinApp] 当前为开发版本,可能包含暂未发布的功能或测试代码。不建议在生产环境中使用
01:56:47 Info [CoreService] Serein.Cli 2.1.0.0
01:56:47 Info [CoreService]
01:56:47 Info [CoreService] 仓库: https://github.com/SereinDev/Serein
01:56:47 Info [CoreService] Copyright (C) 2022 Zaitonn. All rights reserved.
01:56:47 Info [CoreService]
01:56:47 Info [CoreService] Serein启动成功!
01:56:47 Info [Lifetime] Application started. Press Ctrl+C to shut down.
01:56:47 Info [Lifetime] Hosting environment: Development
01:56:47 Info [Lifetime] Content root path: /root/Serein/src/Serein.Cli/bin/Debug/net8.0/
01:56:47 Info [ServerSwitcher] 当前仅有一个服务器配置,该服务器的所有输出都将输出到控制台
01:56:47 Info [ServerSwitcher] 添加更多服务器配置后,你可以用"server list"查看所有的服务器信息或用"server switch <id>"选择要进行操作的服务器
01:56:47 Info [ServerSwitcher] 成功选择到"未命名"(Id=myserver)
01:56:49 Info [PluginLogger] 开始加载插件
01:56:49 Info [PluginLogger] 所有插件加载完毕。已加载0个插件
>
似乎没什么问题。所以,能否添加对于BSD平台的支持?
看起来正常使用完全没有问题。
能否添加对于BSD平台的支持?
理论上就是支持的,只是考虑到用的人少就没在release里发布,后续会考虑加上