Fix osx github tests

This commit is contained in:
caesay
2024-01-08 13:12:32 +00:00
parent b4f48741a1
commit b5c37ae78c
3 changed files with 5 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
using System.Diagnostics;
using System.Diagnostics;
using Velopack.Deployment;
using Velopack.Packaging.OSX.Commands;
using Velopack.Packaging.Windows.Commands;
@@ -19,13 +19,6 @@ namespace Velopack.Packaging.Tests
_output = output;
}
private Release GetGithubRelease(GitHubClient client, string releaseName)
{
var (repoOwner, repoName) = GitHubRepository.GetOwnerAndRepo(GITHUB_REPOURL);
var existingReleases = client.Repository.Release.GetAll(repoOwner, repoName).GetAwaiterResult();
return existingReleases.SingleOrDefault(s => s.Name == releaseName);
}
[Fact]
public void CanDeployAndUpdateFromGithub()
{
@@ -142,6 +135,8 @@ This is just a _test_!
EntryExecutableName = "TestApp",
ReleaseDir = new DirectoryInfo(releaseDir),
PackId = id,
Icon = Path.Combine(PathHelper.GetProjectDir(), "examples", "AvaloniaCrossPlat", "Velopack.icns"),
TargetRuntime = RID.Parse(VelopackRuntimeInfo.SystemOs.GetOsShortName()),
PackVersion = version,
PackDirectory = Path.Combine(projDir, "publish"),
ReleaseNotes = releaseNotes,