Skip to content

Commit

Permalink
Actually make aliasing work
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Sep 8, 2015
1 parent ce4c777 commit e65357e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Update/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ int executeCommandLine(string[] args)
string processStart = default(string);
string processStartArgs = default(string);
string setupIcon = default(string);
string icon = default(string);
string shortcutArgs = default(string);
bool shouldWait = false;

Expand All @@ -117,8 +118,8 @@ int executeCommandLine(string[] args)
{ "p=|packagesDir=", "Path to the NuGet Packages directory for C# apps", v => packagesDir = v},
{ "bootstrapperExe=", "Path to the Setup.exe to use as a template", v => bootstrapperExe = v},
{ "g=|loadingGif=", "Path to an animated GIF to be displayed during installation", v => backgroundGif = v},
{ "i=|icon", "Path to an ICO file that will be used for icon shortcuts", v => setupIcon = v},
{ "setupIcon", "Path to an ICO file that will be used for the Setup executable's icon", v => setupIcon = v},
{ "i=|icon", "Path to an ICO file that will be used for icon shortcuts", v => icon = v},
{ "setupIcon=", "Path to an ICO file that will be used for the Setup executable's icon", v => setupIcon = v},
{ "n=|signWithParams=", "Sign the installer via SignTool.exe with the parameters given", v => signingParameters = v},
{ "s|silent", "Silent install", _ => silentInstall = true},
{ "b=|baseUrl=", "Provides a base URL to prefix the RELEASES file packages with", v => baseUrl = v, true},
Expand All @@ -128,6 +129,10 @@ int executeCommandLine(string[] args)

opts.Parse(args);

// NB: setupIcon and icon are just aliases for compatibility
// reasons, because of a dumb breaking rename I made in 1.0.1
setupIcon = setupIcon ?? icon;

if (updateAction == UpdateAction.Unset) {
ShowHelp();
return -1;
Expand Down

0 comments on commit e65357e

Please sign in to comment.