Skip to content

Commit

Permalink
(#977) Change variable names to be more specific
Browse files Browse the repository at this point in the history
To ensure that it is clear exactly which public keys are being referred
to, but the variable names to include "Gui" in the name. That way,
there is no ambiguity between the public keys used for Chocolatey CLI
and Chocolatey GUI.
  • Loading branch information
gep13 committed Jan 26, 2023
1 parent 0cdf96d commit 3b5d4e4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Source/ChocolateyGui.Common.Windows/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ public class Bootstrapper : BootstrapperBase
public static readonly string ChocolateyGuiCommonAssemblySimpleName = "ChocolateyGui.Common";
public static readonly string ChocolateyGuiCommonWindowsAssemblySimpleName = "ChocolateyGui.Common.Windows";

public static readonly string UnofficialChocolateyPublicKey = "ffc115b9f4eb5c26";
public static readonly string OfficialChocolateyPublicKey = "dfd1909b30b79d8b";
public static readonly string UnofficialChocolateyGuiPublicKey = "ffc115b9f4eb5c26";
public static readonly string OfficialChocolateyGuiPublicKey = "dfd1909b30b79d8b";

public static readonly string Name = "Chocolatey GUI";

Expand Down
4 changes: 2 additions & 2 deletions Source/ChocolateyGui/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public App()
}
#if FORCE_CHOCOLATEY_OFFICIAL_KEY
var chocolateyGuiPublicKey = Bootstrapper.OfficialChocolateyPublicKey;
var chocolateyGuiPublicKey = Bootstrapper.OfficialChocolateyGuiPublicKey;
#else
var chocolateyGuiPublicKey = Bootstrapper.UnofficialChocolateyPublicKey;
var chocolateyGuiPublicKey = Bootstrapper.UnofficialChocolateyGuiPublicKey;
#endif
if (AssemblyResolver.DoesPublicKeyTokenMatch(requestedAssembly, chocolateyGuiPublicKey)
Expand Down
4 changes: 2 additions & 2 deletions Source/ChocolateyGuiCli/Bootstrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ public static class Bootstrapper
public static readonly string ChocolateyGuiCommonAssemblySimpleName = "ChocolateyGui.Common";
public static readonly string ChocolateyGuiCommonWindowsAssemblySimpleName = "ChocolateyGui.Common.Windows";

public static readonly string UnofficialChocolateyPublicKey = "ffc115b9f4eb5c26";
public static readonly string OfficialChocolateyPublicKey = "dfd1909b30b79d8b";
public static readonly string UnofficialChocolateyGuiPublicKey = "ffc115b9f4eb5c26";
public static readonly string OfficialChocolateyGuiPublicKey = "dfd1909b30b79d8b";

public static readonly string Name = "Chocolatey GUI";

Expand Down
4 changes: 2 additions & 2 deletions Source/ChocolateyGuiCli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ private static void AddAssemblyResolver()
}
#if FORCE_CHOCOLATEY_OFFICIAL_KEY
var chocolateyGuiPublicKey = Bootstrapper.OfficialChocolateyPublicKey;
var chocolateyGuiPublicKey = Bootstrapper.OfficialChocolateyGuiPublicKey;
#else
var chocolateyGuiPublicKey = Bootstrapper.UnofficialChocolateyPublicKey;
var chocolateyGuiPublicKey = Bootstrapper.UnofficialChocolateyGuiPublicKey;
#endif
if (AssemblyResolver.DoesPublicKeyTokenMatch(requestedAssembly, chocolateyGuiPublicKey)
Expand Down

0 comments on commit 3b5d4e4

Please sign in to comment.