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

+10 -4
View File
@@ -307,20 +307,26 @@ jobs:
-p:IncludeNativeLibrariesForSelfExtract=true -p:PublishReadyToRun=false -o "out/publish/$p"
if ($LASTEXITCODE -ne 0) { throw "dotnet publish $p failed" }
}
Remove-Item -Recurse -Force out/app-v1, out/installers -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force out/app-v1, out/server-v1, out/installers -ErrorAction SilentlyContinue
Copy-Item -Recurse out/publish/Chronos.App out/app-v1
Set-Content -LiteralPath out/app-v1/legacy.txt -Value 'only in version 1'
# Stands in for Chronos Server 1.0 for Windows, which the single setup no longer ships (a program it retains).
New-Item -ItemType Directory -Force -Path out/server-v1 | Out-Null
Copy-Item -LiteralPath out/publish/Chronos.Uploader/Chronos.Uploader.exe -Destination out/server-v1/Chronos.Server.exe
$tools = 'src/Chronos.Tools/bin/Release/net10.0/Chronos.Tools.dll'
$installers = @(
@('--product', 'Chronos', '--version', '1.0.0', '--component', 'Chronos=out/app-v1',
'--component', 'Uploader=out/publish/Chronos.Uploader', '--out', 'out/installers/Chronos-Setup-1.0.0.exe'),
@('--product', 'Chronos', '--version', '1.0.1', '--component', 'Chronos=out/publish/Chronos.App',
'--component', 'Uploader=out/publish/Chronos.Uploader', '--out', 'out/installers/Chronos-Setup-1.0.1.exe'),
@('--product', 'Chronos Uploader', '--version', '1.0.1', '--component', 'Uploader=out/publish/Chronos.Uploader',
'--out', 'out/installers/Chronos-Uploader-Setup-1.0.1.exe'))
@('--product', 'Chronos Uploader', '--version', '1.0.0', '--component', 'Uploader=out/publish/Chronos.Uploader',
'--out', 'out/installers/Chronos-Uploader-Setup-1.0.0.exe'),
@('--product', 'Chronos', '--version', '1.0.0', '--component', 'Chronos=out/app-v1', '--component', 'Server=out/server-v1', '--legacy',
'--out', 'out/installers/Chronos-Server-Setup-1.0.0.exe'))
foreach ($installer in $installers) {
dotnet $tools pack-installer --setup out/publish/Chronos.Setup/Chronos.Setup.exe @installer
if ($LASTEXITCODE -ne 0) { throw "pack-installer $installer failed" }
}
./.gitea/scripts/installer-test.ps1 -Setup1 out/installers/Chronos-Setup-1.0.0.exe -Setup2 out/installers/Chronos-Setup-1.0.1.exe `
-UploaderSetup out/installers/Chronos-Uploader-Setup-1.0.1.exe -Version1 1.0.0 -Version2 1.0.1 -Screenshots out/installer-screenshots
-LegacyUploaderSetup out/installers/Chronos-Uploader-Setup-1.0.0.exe -ServerSetup out/installers/Chronos-Server-Setup-1.0.0.exe `
-Version1 1.0.0 -Version2 1.0.1 -Screenshots out/installer-screenshots
+22 -7
View File
@@ -1,7 +1,7 @@
name: Release
# A tag vMAJOR.MINOR.PATCH[-PRERELEASE] builds, tests and publishes everything (BRIEF §19.3, amended 2026-10-26, R1)
# on the Linux runner: the Windows programs cross-compiled (installers, portable and server zips), SHA256SUMS and
# on the Linux runner: the Windows programs cross-compiled (the one setup and the portable zip), SHA256SUMS and
# release notes on the Gitea release, then the server image in the Gitea container registry. The image's :latest
# follows the highest stable release, or the highest pre-release while no stable one exists; the public releases
# repository and the in-app update check follow stable releases only.
@@ -111,7 +111,6 @@ jobs:
common="-c Release -r win-x64 --self-contained -p:ChronosVersion=$VERSION -p:ChronosReleasesUrl=$CHRONOS_RELEASES_URL -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true -p:DebugType=none -m:$BUILD_CPUS"
dotnet publish src/Chronos.App/Chronos.App.csproj $common -p:PublishReadyToRun=true -o out/publish/app
dotnet publish src/Chronos.Uploader/Chronos.Uploader.csproj $common -p:PublishReadyToRun=true -o out/publish/uploader
dotnet publish src/Chronos.Server/Chronos.Server.csproj $common -o out/publish/server
dotnet publish src/Chronos.Setup/Chronos.Setup.csproj $common -p:PublishReadyToRun=true -o out/publish/setup
dotnet "$TOOLS" pe-check out/publish/app/Chronos.exe out/publish/uploader/Chronos.Uploader.exe out/publish/setup/Chronos.Setup.exe
@@ -131,15 +130,14 @@ jobs:
mv "$exe.signed" "$exe"
done
- name: Package installers and archives
# One setup installs, updates, adds and removes Chronos Desktop and Chronos Uploader; Chronos Server ships only as
# the Docker image. The portable zip stays beside it: portable copies update through it.
- name: Package the setup and the portable zip
run: |
mkdir -p out/release
dotnet "$TOOLS" pack-installer --setup out/publish/setup/Chronos.Setup.exe --product Chronos \
--component "Chronos=out/publish/app" --component "Uploader=out/publish/uploader" --component "Server=out/publish/server" \
--component "Chronos=out/publish/app" --component "Uploader=out/publish/uploader" \
--version "$VERSION" --out "out/release/Chronos-Setup-$VERSION.exe"
dotnet "$TOOLS" pack-installer --setup out/publish/setup/Chronos.Setup.exe --product "Chronos Uploader" \
--component "Uploader=out/publish/uploader" --version "$VERSION" --out "out/release/Chronos-Uploader-Setup-$VERSION.exe"
dotnet "$TOOLS" zip out/publish/server --out "out/release/Chronos-Server-win-x64-$VERSION.zip"
# The portable build keeps its data next to Chronos.exe because of portable.txt (never inside the installer).
cp -R out/publish/app out/portable
printf 'Chronos portable mode: settings, index and logs are kept in the data folder next to Chronos.exe.\r\n' > out/portable/portable.txt
@@ -147,6 +145,23 @@ jobs:
dotnet "$TOOLS" pe-check out/release/*.exe
ls -l out/release
# The release holds exactly the setup and the portable zip (SHA256SUMS follows): an Uploader-only setup or a
# Windows server package must never be published again.
- name: Check the release assets
working-directory: out/release
run: |
if ls | grep -E 'Uploader-Setup|Server-win' ; then
echo "::error title=Release assets::an Uploader-only setup or a Windows server package was produced"
exit 1
fi
expected="$(printf '%s\n' "Chronos-Setup-$VERSION.exe" "Chronos-win-x64-portable-$VERSION.zip" | sort)"
actual="$(ls -1 | sort)"
if [ "$actual" != "$expected" ]; then
echo "::error title=Release assets::expected:"; echo "$expected"; echo "found:"; echo "$actual"
exit 1
fi
echo "Release assets: $(echo "$actual" | tr '\n' ' ')"
- name: Sign installers
if: env.HAS_SIGNING == 'true'
env: