You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chocolatey-Package-Updater.ps1
+29-5Lines changed: 29 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
<#PSScriptInfo
2
2
3
-
.VERSION 0.0.10
3
+
.VERSION 0.0.11
4
4
5
5
.GUID 9b612c16-25c0-4a40-afc7-f876274e7e8c
6
6
@@ -23,6 +23,7 @@
23
23
[Version 0.0.8] - Improved help. Added Help parameter. Added loop to repeatedly attempt file deletion if it's in use, mitigating file deletion prevention by antivirus software scanning download.
24
24
[Version 0.0.9] - Improved ProductVersion/FileVersion detection, only returns applicable Chocolatey version number despite the version provided in the metadata of the file/installer.
25
25
[Version 0.0.10] - Added disable IPv6 to aria2c args.
26
+
[Version 0.0.11] - Added ignore version.
26
27
27
28
#>
28
29
@@ -79,7 +80,7 @@ To update a Chocolatey package with additional parameters, run the following com
SendAlert -Subject "$PackageName Package Updated"-Message "$PackageName has been updated to version $ProductVersion. It is now ready for testing."-Alert $Alert
|`-PackageName`| string | Yes | The name of the package. |
279
-
|`-FileUrl`| string | Yes | The URL to download the file from. If you're using `ScrapeUrl` and `ScrapePattern` you can specify `{VERSION}` in the `FileUrl` and it will download from that FileUrl. |
280
-
|`-FileUrl64`| string | Yes | The URL to download the file from. |
281
-
|`-FileDestinationPath`| string | Only required if EXE distributed in package | Absolute/relative path to move/rename the temporary file to (if EXE is distributed in package). |
282
-
|`-FileDestinationPath64`| string | Only required if url and url64 is used and EXE is distributed in package | Absolute/relative path to move/rename the temporary file to (if EXE is distributed in package). |
283
-
|`-GitHubRepoUrl`| string | No | The URL to the GitHub repository. If specified, the latest release will be downloaded using `{VERSION}` replacement in the `FileUrl`. |
284
-
|`-ScrapeUrl`| string | No | If the version number is not available in the download URL, you can specify a URL to scrape the version number from. |
285
-
|`-ScrapePattern`| string | No | The regex pattern to use when scraping the version number from the scrape URL. |
286
-
|`-Alert`| boolean | No | If the package is updated, send a message to the maintainer for review |
287
-
|`-NuspecPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the nuspec file |
288
-
|`-InstallScriptPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the `ChocolateyInstall.ps1` script |
289
-
|`-VerificationPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the `VERIFICATION.txt` file |
290
-
|`-FileDownloadTempPath`| string | No |**Not recommended. Recommended using default paths.**Absolute/relative path to save the file to |
291
-
|`-FileDownloadTempPath64`| string | No |**Not recommended. Recommended using default paths.**Absolute/relative path to save the file to |
|`-PackageName`| string | Yes | The name of the package. |
279
+
|`-FileUrl`| string | Yes | The URL to download the file from. If you're using `ScrapeUrl` and `ScrapePattern` you can specify `{VERSION}` in the `FileUrl` and it will download from that FileUrl. |
280
+
|`-FileUrl64`| string | Yes | The URL to download the file from. |
281
+
|`-FileDestinationPath`| string | Only required if EXE distributed in package | Absolute/relative path to move/rename the temporary file to (if EXE is distributed in package). |
282
+
|`-FileDestinationPath64`| string | Only required if url and url64 is used and EXE is distributed in package | Absolute/relative path to move/rename the temporary file to (if EXE is distributed in package). |
283
+
|`-GitHubRepoUrl`| string | No | The URL to the GitHub repository. If specified, the latest release will be downloaded using `{VERSION}` replacement in the `FileUrl`. |
284
+
|`-ScrapeUrl`| string | No | If the version number is not available in the download URL, you can specify a URL to scrape the version number from. |
285
+
|`-ScrapePattern`| string | No | The regex pattern to use when scraping the version number from the scrape URL. |
286
+
|`-IgnoreVersion`| string | No | Ignore this version when attempting to update. This is useful for cases where you have modified the updater, such as `1.0.2.20240531`, and want to ignore version `1.0.2` because version checks would otherwise fail. |
287
+
|`-Alert`| boolean | No | If the package is updated, send a message to the maintainer for review |
288
+
|`-NuspecPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the nuspec file |
289
+
|`-InstallScriptPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the `ChocolateyInstall.ps1` script |
290
+
|`-VerificationPath`| string | No |**Not recommended. Recommended using default Choco paths.** Absolute/relative path to the `VERIFICATION.txt` file |
291
+
|`-FileDownloadTempPath`| string | No |**Not recommended. Recommended using default paths.**Absolute/relative path to save the file to |
292
+
|`-FileDownloadTempPath64`| string | No |**Not recommended. Recommended using default paths.**Absolute/relative path to save the file to |
292
293
293
294
`-ScrapeUrl64` and `-ScrapePattern64` are not options because the version number should be the same regardless of architecture.
0 commit comments