Skip to content

Commit

Permalink
v2.0.0 extension.yaml update
Browse files Browse the repository at this point in the history
  • Loading branch information
SparrowBrain committed Aug 21, 2024
1 parent 09d2936 commit 212013c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion GGDeals/extension.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Id: SparrowBrain_GGDeals
Name: GG.deals
Author: SparrowBrain
Version: 0.2.3
Version: 2.0.0
Module: GGDeals.dll
Type: GenericPlugin
Icon: icon.png
Expand Down
38 changes: 19 additions & 19 deletions ReleaseTools/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private static async Task Main(string[] args)
var testRunner = @"""C:\Users\Qwx\src\Playnite.GGDeals\packages\xunit.runner.console.2.4.2\tools\net462\xunit.console.exe""";
var toolbox = @"""C:\Users\Qwx\AppData\Local\Playnite\Toolbox.exe""";

await EnsureGitHubAuthentication();
//await EnsureGitHubAuthentication();

var extensionPackageNameGuesser = new ExtensionPackageNameGuesser();

Expand All @@ -49,24 +49,24 @@ private static async Task Main(string[] args)
CommitAndPush($@"v{changeEntry.Version} installer-manifest.yaml update");
}

private static async Task EnsureGitHubAuthentication()
{
var authStatusParser = new AuthStatusParser();
var p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.FileName = "gh";
p.StartInfo.Arguments = "auth status";
p.Start();
var output = await p.StandardError.ReadToEndAsync();
p.WaitForExit();

if (!authStatusParser.IsUserLoggedIn(output))
{
throw new AuthenticationException(
"User not logged in to GitHub via CLI. Either run `gh auth login` or setup an environment variable `GITHUB_TOKEN`. More info: https://cli.github.com/manual/.");
}
}
//private static async Task EnsureGitHubAuthentication()
//{
// var authStatusParser = new AuthStatusParser();
// var p = new Process();
// p.StartInfo.UseShellExecute = false;
// p.StartInfo.RedirectStandardError = true;
// p.StartInfo.FileName = "gh";
// p.StartInfo.Arguments = "auth status";
// p.Start();
// var output = await p.StandardError.ReadToEndAsync();
// p.WaitForExit();

// if (!authStatusParser.IsUserLoggedIn(output))
// {
// throw new AuthenticationException(
// "User not logged in to GitHub via CLI. Either run `gh auth login` or setup an environment variable `GITHUB_TOKEN`. More info: https://cli.github.com/manual/.");
// }
//}

private static string CleanUpReleaseArtifacts(string pathToSolution)
{
Expand Down

0 comments on commit 212013c

Please sign in to comment.