Add deployment test support for ubuntu

This commit is contained in:
Caelan
2024-01-10 23:54:28 +00:00
parent 103e5e271a
commit be240e3876

View File

@@ -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();
}