feat: single setup, mass-pass progress, per-server homes, Desktop shares its library (owner review 5, v1.1.0) (#68)
CI / Build and test (push) Successful in 11m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 12s
Release / Build, test and publish (push) Successful in 14m56s
CI / PostgreSQL 16 integration (push) Successful in 10m11s
CI / PostgreSQL 17 integration (push) Successful in 10m15s
CI / Docker image (push) Successful in 45s
Release / Server image (push) Successful in 4m55s
CI / Build and test (push) Successful in 11m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 12s
Release / Build, test and publish (push) Successful in 14m56s
CI / PostgreSQL 16 integration (push) Successful in 10m11s
CI / PostgreSQL 17 integration (push) Successful in 10m15s
CI / Docker image (push) Successful in 45s
Release / Server image (push) Successful in 4m55s
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #68.
This commit is contained in:
1 parent
988068ee8e
commit
20d64af4a4
793 files changed
+23882
-2096
No files matched your search
@@ -0,0 +1,17 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<!-- The console program of Chronos Server (the Docker image, development runs); the server itself is the
|
||||
Chronos.Server library, which Chronos Desktop also hosts in-process to share its library (owner review 5, #67). -->
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net10.0</TargetFramework>
|
||||
<RootNamespace>Chronos.Server.Host</RootNamespace>
|
||||
<AssemblyName>Chronos.Server.Host</AssemblyName>
|
||||
<ApplicationIcon Condition="Exists('$(ChronosIconDir)chronos-server.ico')">$(ChronosIconDir)chronos-server.ico</ApplicationIcon>
|
||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||
<InvariantGlobalization>false</InvariantGlobalization>
|
||||
<UserSecretsId />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Chronos.Server\Chronos.Server.csproj" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,30 @@
|
||||
using Chronos.Server.Configuration;
|
||||
using Chronos.Server.Hosting;
|
||||
using Chronos.Server.Storage;
|
||||
|
||||
var command = ServerCommandLine.Parse(args);
|
||||
if (command.Error is not null)
|
||||
{
|
||||
await Console.Error.WriteLineAsync(command.Error);
|
||||
return 2;
|
||||
}
|
||||
|
||||
switch (command.Command)
|
||||
{
|
||||
case ServerCommand.Help:
|
||||
Console.WriteLine(ServerCommandLine.Usage);
|
||||
return 0;
|
||||
case ServerCommand.HealthCheck:
|
||||
return await HealthProbe.RunAsync();
|
||||
default:
|
||||
var app = ServerHost.Build(ServerOptions.Load(), [.. command.HostArguments], RegisterModules);
|
||||
await app.RunAsync();
|
||||
return 0;
|
||||
}
|
||||
|
||||
// The archive engine, then analysis and managed rendering over it.
|
||||
static void RegisterModules(IServiceCollection services)
|
||||
{
|
||||
ArchiveModule.Register(services);
|
||||
ProcessingModule.Register(services);
|
||||
}
|
||||
Reference in new issue
Block a user