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

Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #68.
This commit is contained in:
Alby96 authored and Alby96 committed 2026-11-15 18:11:43 +01:00
1 parent 988068ee8e
commit 20d64af4a4
793 files changed
+23882 -2096

No files matched your search

+3 -2
View File
@@ -10,7 +10,8 @@ COPY src/Chronos.Core/ src/Chronos.Core/
COPY src/Chronos.Data/ src/Chronos.Data/
COPY src/Chronos.Protocol/ src/Chronos.Protocol/
COPY src/Chronos.Server/ src/Chronos.Server/
RUN dotnet publish src/Chronos.Server/Chronos.Server.csproj \
COPY src/Chronos.Server.Host/ src/Chronos.Server.Host/
RUN dotnet publish src/Chronos.Server.Host/Chronos.Server.Host.csproj \
-c Release -a "$TARGETARCH" --no-self-contained \
-p:ChronosVersion="$CHRONOS_VERSION" -o /out \
&& rm -f /out/*.pdb
@@ -43,5 +44,5 @@ RUN chmod 0755 /usr/local/bin/chronos-entrypoint && mkdir -p /archive /data /vid
VOLUME ["/archive", "/data"]
EXPOSE 8080 8443
HEALTHCHECK --interval=30s --timeout=8s --start-period=40s --retries=3 \
CMD ["dotnet", "/app/Chronos.Server.dll", "--healthcheck"]
CMD ["dotnet", "/app/Chronos.Server.Host.dll", "--healthcheck"]
ENTRYPOINT ["/usr/local/bin/chronos-entrypoint"]
+3 -3
View File
@@ -14,7 +14,7 @@ umask 002
# Help and the health probe touch neither folder.
case "${1:-}" in
--help | -h | -\? | /\? | --healthcheck) exec dotnet /app/Chronos.Server.dll "$@" ;;
--help | -h | -\? | /\? | --healthcheck) exec dotnet /app/Chronos.Server.Host.dll "$@" ;;
esac
as_user() {
@@ -62,7 +62,7 @@ if [ "$(id -u)" = "0" ]; then
fi
fi
fi
exec setpriv --reuid="$PUID" --regid="$PGID" --clear-groups -- dotnet /app/Chronos.Server.dll "$@"
exec setpriv --reuid="$PUID" --regid="$PGID" --clear-groups -- dotnet /app/Chronos.Server.Host.dll "$@"
fi
exec dotnet /app/Chronos.Server.dll "$@"
exec dotnet /app/Chronos.Server.Host.dll "$@"
+24 -35
View File
@@ -12,9 +12,9 @@ for community review. Development happens elsewhere; please use the issues here
| Program | Runs on | What it does |
|---|---|---|
| **Chronos** | Windows 10 21H2+ / 11, x64 | Desktop client: card import with hash verification, archive, analysis advisor, sequence editor, rendering with GPU encoders (H.264, HEVC, AV1) |
| **Chronos Uploader** | Windows 10 21H2+ / 11, x64 | Small tray program that uploads photos, folders, cards and watch folders to a Chronos Server |
| **Chronos Server** | Docker (linux/amd64), Unraid, Windows | Shared archive, users, resumable uploads, sync, background jobs, render delegation to GPU-equipped PCs, web admin panel |
| **Chronos Desktop** | Windows 10 21H2+ / 11, x64 | Desktop client: card import with hash verification, archive, analysis advisor, sequence editor, rendering with GPU encoders (H.264, HEVC, AV1); can share its library on the local network |
| **Chronos Uploader** | Windows 10 21H2+ / 11, x64 | Small tray program that uploads photos, folders, cards and watch folders to a Chronos Server or a shared library |
| **Chronos Server** | Docker (linux/amd64), Unraid | Shared archive, users, resumable uploads, sync, background jobs, render delegation to GPU-equipped PCs, web admin panel |
| | |
|---|---|
@@ -31,27 +31,30 @@ for community review. Development happens elsewhere; please use the issues here
Extensions* and *HEVC Video Extensions*.
- **Hardware encoding:** any GPU whose driver provides Media Foundation encoders (NVIDIA, AMD, Intel). Without one,
Chronos encodes H.264 in software and its own formats (AVI, GIF, APNG, image sequences).
- **Server:** Docker 20.10+ (or Unraid 6.12+) and PostgreSQL 16 or 17; or Windows 10/11/Server 2019+ x64.
- **Server:** Docker 20.10+ (or Unraid 6.12+) and PostgreSQL 16 or 17. On Windows, Chronos Desktop shares its own
library instead (below).
## Install, upgrade, uninstall (Windows)
1. Download `Chronos-Setup-<version>.exe` (Chronos, Uploader and, optionally, Server) or
`Chronos-Uploader-Setup-<version>.exe` from the [latest release](https://gitea.encke-hake.ts.net/BalboSoft/Chronos/releases/latest).
1. Download `Chronos-Setup-<version>.exe`, the one setup for Chronos Desktop and Chronos Uploader, from the
[latest release](https://gitea.encke-hake.ts.net/BalboSoft/Chronos/releases/latest).
2. Check the download (optional, recommended): in PowerShell run
`Get-FileHash .\Chronos-Setup-<version>.exe -Algorithm SHA256` and compare the value with the line for that file
in `SHA256SUMS` of the same release.
3. Run the setup. It installs for the current user into `%LOCALAPPDATA%\Programs\Chronos` without administrator
rights; choose *All users* to install into `Program Files` (Windows asks for permission). The *Server* component
runs as a Windows service, so choosing it installs for all users, in a folder inside `Program Files`.
rights; choose *All users* to install into `Program Files` (Windows asks for permission). Tick Chronos Desktop,
Chronos Uploader or both; the *Changes* row lists what an update will do before it runs. Run it again later to add
or remove a program; with nothing ticked it uninstalls. A Chronos Uploader 1.0 installed on its own is replaced by
it, keeping its settings; a Chronos Server 1.0 for Windows is kept, marked *No longer offered*, until you untick it.
- **Upgrade:** Chronos checks this repository at start (you can turn this off in Settings › Updates) and shows a notice
when a new version exists. *Download* fetches the setup, verifies it against `SHA256SUMS` and shows it in Explorer;
- **Upgrade:** Chronos Desktop and Chronos Uploader check this repository at start (you can turn this off in
Settings › Updates) and show a notice when a new version exists. *Download* fetches the setup, verifies it against `SHA256SUMS` and shows it in Explorer;
run it to upgrade in place. Your archive, settings and index are kept.
- **Uninstall:** Windows Settings › Apps › Installed apps › Chronos › Uninstall. Your photos and archive are never
touched; the program data in `%LOCALAPPDATA%\Chronos` is removed only if you tick the option to do so, and only the
part no other installed Chronos program still uses. A Chronos Server service of that folder is stopped and removed.
part no other installed Chronos program still uses. A Chronos Server 1.0 service of that folder is stopped and removed.
- **Silent install** (IT deployment): `Chronos-Setup-<version>.exe /S [/DIR="D:\Apps\Chronos"] [/ALLUSERS]
[/COMPONENTS=Chronos,Uploader,Server] [/NODESKTOP] [/NOSTARTMENU] [/LANG=it]`. Silent uninstall:
[/COMPONENTS=Desktop,Uploader] [/NODESKTOP] [/NOSTARTMENU] [/LANG=it]`. Silent uninstall:
`"%LOCALAPPDATA%\Programs\Chronos\Uninstall Chronos.exe" /uninstall /S`.
- **Portable:** `Chronos-win-x64-portable-<version>.zip` keeps its data in a `data` folder next to `Chronos.exe`
(because of the `portable.txt` file). Do not unpack it into a OneDrive or Dropbox folder.
@@ -152,31 +155,17 @@ container's (8080 and 8443), not the ones clients use.
The template file is [`unraid/chronos.xml`](unraid/chronos.xml).
## Chronos Server on Windows
## Share a library from Chronos Desktop
Choose the *Server* component in the setup, or unpack `Chronos-Server-win-x64-<version>.zip`. It uses SQLite in
`C:\ProgramData\Chronos Server` by default, or PostgreSQL with `CHRONOS_DB=postgres` and the `CHRONOS_DB_*` variables.
The data folder is readable only by the server's account, SYSTEM and Administrators; without `CHRONOS_ADMIN_PASSWORD`
the first start writes a temporary admin password to `initial-admin-password.txt` there (open it from an
administrator prompt). Everything in it must belong to those accounts and nothing in it may be a link: otherwise the
server does not start and names the file to check (in the console, or for the service in Event Viewer › Windows Logs ›
Application, source `ChronosServer`). A new archive folder (default `C:\ChronosArchive`) can be changed only by those
accounts and read by other users; when other users can change an existing archive, the log says so.
There is no separate Chronos Server for Windows any more. In Chronos Desktop turn on Settings › Server › *Share this
library*: while Chronos runs it serves this PC's archive to other PCs, Chronos Uploader and render nodes with the same
engine as the Docker image, on HTTPS 8443 and HTTP 8080 by default. Server › This library shows the addresses and the
certificate fingerprint to give to clients (each with *Copy*), the first admin's temporary password, the clients
connected and *Admin panel*. Allow Chronos through the Windows firewall on private networks when Windows asks.
Run `Chronos.Server.exe` in a console, or install it as a Windows service from an administrator prompt with
`Chronos.Server.exe --install-service` (remove it with `--uninstall-service`). The service runs as LocalSystem, so it
registers only from a copy inside `Program Files` that only administrators can change: install for *All users*, or
unpack the zip into a folder under `Program Files`. A console run that was not elevated creates the data folder as the
account that ran it, and the service then refuses the folder and names that account (`… belongs to PC\name …`).
Either delete the folder (with SQLite this also deletes the server's database and its accounts), or give the folder
and everything in it to Administrators and take that account's access to it away, from a Command Prompt run as
administrator: `takeown /F "C:\ProgramData\Chronos Server" /A /R`, then
`icacls "C:\ProgramData\Chronos Server" /remove:g "PC\name" /T`, with the account the refusal names in place of
`PC\name` (`dir /q C:\ProgramData` also shows it, as the folder's owner, until `takeown` runs). When you ran the
console yourself and the prompt runs as you, that account is `"%USERDOMAIN%\%USERNAME%"`. Then start the service. No
other account gains access at any step, and afterwards only SYSTEM and Administrators have it, to the TLS key and
`initial-admin-password.txt` too. Do not reset the folder's permissions (`icacls /reset`): everything in it would then
inherit those of `C:\ProgramData`, which let every user read it.
Moving from Chronos Server 1.0 for Windows: share the same archive folder from Chronos Desktop, or run the Docker image
with it; then untick Chronos Server in the setup, which removes it and its service. Its data in
`C:\ProgramData\Chronos Server` is kept.
## Translations