From 37516b7fe68af71313c57dcbc94ae5abf2ce3e88 Mon Sep 17 00:00:00 2001 From: Achim Schaefer Date: Tue, 23 Apr 2024 00:25:53 +0200 Subject: [PATCH 1/3] Additional setting to have idle IO --- Installer/debian/systemd/duplicati.service | 1 + Installer/fedora/systemd/duplicati.service | 1 + 2 files changed, 2 insertions(+) diff --git a/Installer/debian/systemd/duplicati.service b/Installer/debian/systemd/duplicati.service index d7ace0697..5594c5a4f 100644 --- a/Installer/debian/systemd/duplicati.service +++ b/Installer/debian/systemd/duplicati.service @@ -5,6 +5,7 @@ After=network.target [Service] Nice=19 IOSchedulingClass=idle +IOSchedulingPriority=7 EnvironmentFile=-/etc/default/duplicati ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS Restart=always diff --git a/Installer/fedora/systemd/duplicati.service b/Installer/fedora/systemd/duplicati.service index de8d0e3cb..ffc6d21a8 100644 --- a/Installer/fedora/systemd/duplicati.service +++ b/Installer/fedora/systemd/duplicati.service @@ -5,6 +5,7 @@ After=network.target [Service] Nice=19 IOSchedulingClass=idle +IOSchedulingPriority=7 EnvironmentFile=-/etc/sysconfig/duplicati ExecStart=/usr/bin/duplicati-server $DAEMON_OPTS Restart=on-failure From fb45a14e00671e42b85d92ebddec6a937e03e2ba Mon Sep 17 00:00:00 2001 From: Achim Schaefer Date: Tue, 23 Apr 2024 00:26:20 +0200 Subject: [PATCH 2/3] minor addition in the command to build the package --- ReleaseBuilder/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReleaseBuilder/README.md b/ReleaseBuilder/README.md index 39a6ef534..e11147972 100644 --- a/ReleaseBuilder/README.md +++ b/ReleaseBuilder/README.md @@ -48,13 +48,13 @@ The `create-key` command creates a RSA 1024 bit signing, and encrypts it with th The `build` command creates the packages. An example command that builds all packages would be: ``` -dotnet build debug --version 1.0.0.1 +dotnet run build debug --version 1.0.0.1 ``` To build only a single platform relase, disable all the features and choose the architectures: ``` -dotnet build debug --version 1.0.0.1 \ +dotnet run build debug --version 1.0.0.1 \ --disable-docker-push true \ --keep-builds true \ --disable-authenticode true \ From 6d3e2c747415e6db74ec5e57b112500341a16859 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 23 Apr 2024 13:44:22 +0200 Subject: [PATCH 3/3] Added option to only build solution (simplifies CI operations) --- ReleaseBuilder/Build/Command.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ReleaseBuilder/Build/Command.cs b/ReleaseBuilder/Build/Command.cs index d208fb8da..db82a85d4 100644 --- a/ReleaseBuilder/Build/Command.cs +++ b/ReleaseBuilder/Build/Command.cs @@ -152,6 +152,12 @@ public static partial class Command getDefaultValue: () => false ); + var buildOnlyOption = new Option( + name: "--build-only", + description: "Only build the binaries, do not create packages", + getDefaultValue: () => false + ); + var buildTempOption = new Option( name: "--build-path", description: "The path to the temporary folder used for builds; will be deleted on startup", @@ -251,6 +257,7 @@ public static partial class Command buildTargetOption, solutionFileOption, keepBuildsOption, + buildOnlyOption, disableAuthenticodeOption, disableCodeSignOption, passwordOption, @@ -281,6 +288,7 @@ public static partial class Command /// The release channel /// The version override to use /// If the builds should be kept + /// If only the build should be performed /// If authenticode signing should be disabled /// If signcode should be disabled /// The password to use for the keyfile @@ -302,6 +310,7 @@ public static partial class Command ReleaseChannel Channel, string? Version, bool KeepBuilds, + bool BuildOnly, bool DisableAuthenticode, bool DisableSignCode, string Password, @@ -455,6 +464,12 @@ public static partial class Command // Perform the main compilations await Compile.BuildProjects(baseDir, input.BuildPath.FullName, sourceProjects, windowsOnly, GUIProjects, buildTargets, releaseInfo, input.KeepBuilds, rtcfg); + if (input.BuildOnly) + { + Console.WriteLine("Build completed, skipping package creation ..."); + return; + } + // Create the packages var builtPackages = await CreatePackage.BuildPackages(baseDir, input.BuildPath.FullName, buildTargets, input.KeepBuilds, rtcfg); var files = builtPackages.Select(x => x.CreatedFile).ToList();