Advertisement
Guest User

Untitled

a guest
Apr 1st, 2023
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. optionSet.Add("Usage: Squirrel.exe command [OPTS]");
  2. optionSet.Add("Manages Squirrel packages");
  3. optionSet.Add("");
  4. optionSet.Add("Commands");
  5. optionSet.Add("install=", "Install the app whose package is in the specified directory", delegate(string v)
  6. {
  7. updateAction = UpdateAction.Install;
  8. target = v;
  9. });
  10. optionSet.Add("check=", "Download the releases information specified by the URL and write new results to stdout as JSON. Does not download the actual packages", delegate(string v)
  11. {
  12. updateAction = UpdateAction.CheckForUpdates;
  13. target = v;
  14. });
  15. optionSet.Add("uninstall", "Uninstall the app the same dir as Update.exe", delegate(string v)
  16. {
  17. updateAction = UpdateAction.Uninstall;
  18. });
  19. optionSet.Add("download=", "Download the releases specified by the URL and write new results to stdout as JSON", delegate(string v)
  20. {
  21. updateAction = UpdateAction.Download;
  22. target = v;
  23. });
  24. optionSet.Add("update=", "Update the application to the latest remote version specified by URL", delegate(string v)
  25. {
  26. updateAction = UpdateAction.Update;
  27. target = v;
  28. });
  29. optionSet.Add("releasify=", "Update or generate a releases directory with a given NuGet package", delegate(string v)
  30. {
  31. updateAction = UpdateAction.Releasify;
  32. target = v;
  33. });
  34. optionSet.Add("createShortcut=", "Create a shortcut for the given executable name", delegate(string v)
  35. {
  36. updateAction = UpdateAction.Shortcut;
  37. target = v;
  38. });
  39. optionSet.Add("removeShortcut=", "Remove a shortcut for the given executable name", delegate(string v)
  40. {
  41. updateAction = UpdateAction.Deshortcut;
  42. target = v;
  43. });
  44. optionSet.Add("updateSelf=", "Copy the currently executing Update.exe into the default location", delegate(string v)
  45. {
  46. updateAction = UpdateAction.UpdateSelf;
  47. target = v;
  48. });
  49. optionSet.Add("processStart=", "Start an executable in the latest version of the app package", delegate(string v)
  50. {
  51. updateAction = UpdateAction.ProcessStart;
  52. processStart = v;
  53. }, true);
  54. optionSet.Add("processStartAndWait=", "Start an executable in the latest version of the app package", delegate(string v)
  55. {
  56. updateAction = UpdateAction.ProcessStart;
  57. processStart = v;
  58. shouldWait = true;
  59. }, true);
  60. optionSet.Add("");
  61. optionSet.Add("Options:");
  62. optionSet.Add("h|?|help", "Display Help and exit", delegate(string _)
  63. {
  64. });
  65. optionSet.Add("r=|releaseDir=", "Path to a release directory to use with releasify", delegate(string v)
  66. {
  67. releaseDir = v;
  68. });
  69. optionSet.Add("p=|packagesDir=", "Path to the NuGet Packages directory for C# apps", delegate(string v)
  70. {
  71. packagesDir = v;
  72. });
  73. optionSet.Add("bootstrapperExe=", "Path to the Setup.exe to use as a template", delegate(string v)
  74. {
  75. bootstrapperExe = v;
  76. });
  77. optionSet.Add("g=|loadingGif=", "Path to an animated GIF to be displayed during installation", delegate(string v)
  78. {
  79. backgroundGif = v;
  80. });
  81. optionSet.Add("i=|icon", "Path to an ICO file that will be used for icon shortcuts", delegate(string v)
  82. {
  83. icon = v;
  84. });
  85. optionSet.Add("setupIcon=", "Path to an ICO file that will be used for the Setup executable's icon", delegate(string v)
  86. {
  87. setupIcon = v;
  88. });
  89. optionSet.Add("n=|signWithParams=", "Sign the installer via SignTool.exe with the parameters given", delegate(string v)
  90. {
  91. signingParameters = v;
  92. });
  93. optionSet.Add("s|silent", "Silent install", delegate(string _)
  94. {
  95. silentInstall = true;
  96. });
  97. optionSet.Add("b=|baseUrl=", "Provides a base URL to prefix the RELEASES file packages with", delegate(string v)
  98. {
  99. baseUrl = v;
  100. }, true);
  101. optionSet.Add("a=|process-start-args=", "Arguments that will be used when starting executable", delegate(string v)
  102. {
  103. processStartArgs = v;
  104. }, true);
  105. optionSet.Add("l=|shortcut-locations=", "Comma-separated string of shortcut locations, e.g. 'Desktop,StartMenu'", delegate(string v)
  106. {
  107. shortcutArgs = v;
  108. });
  109. optionSet.Add("no-msi", "Don't generate an MSI package", delegate(string v)
  110. {
  111. noMsi = true;
  112. });
  113. optionSet.Add("updateOnly", "For createShortcut, should we only update an existing link", delegate(string v)
  114. {
  115. updateOnly = true;
  116. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement