From be240e38768fb043bbbda64e3d1a7912a1d9e180 Mon Sep 17 00:00:00 2001 From: Caelan Date: Wed, 10 Jan 2024 23:54:28 +0000 Subject: [PATCH] Add deployment test support for ubuntu --- test/Velopack.Packaging.Tests/DeploymentTests.cs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/test/Velopack.Packaging.Tests/DeploymentTests.cs b/test/Velopack.Packaging.Tests/DeploymentTests.cs index 46274e82..2426616b 100644 --- a/test/Velopack.Packaging.Tests/DeploymentTests.cs +++ b/test/Velopack.Packaging.Tests/DeploymentTests.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using Velopack.Deployment; using Velopack.Packaging.Unix.Commands; using Velopack.Packaging.Windows.Commands; @@ -153,6 +153,19 @@ This is just a _test_! }; var runner = new OsxPackCommandRunner(logger); runner.Run(options).GetAwaiterResult(); + } else if (VelopackRuntimeInfo.IsLinux) { + var options = new LinuxPackOptions { + EntryExecutableName = "TestApp", + ReleaseDir = new DirectoryInfo(releaseDir), + PackId = id, + Icon = Path.Combine(PathHelper.GetProjectDir(), "examples", "AvaloniaCrossPlat", "Velopack.png"), + TargetRuntime = RID.Parse(VelopackRuntimeInfo.SystemOs.GetOsShortName()), + PackVersion = version, + PackDirectory = Path.Combine(projDir, "publish"), + ReleaseNotes = releaseNotes, + }; + var runner = new LinuxPackCommandRunner(logger); + runner.Run(options).GetAwaiterResult(); } else { throw new PlatformNotSupportedException(); }