diff --git a/ReadMe.md b/ReadMe.md index 0fde55d..1ff52f7 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -56,4 +56,10 @@ mklink /J localsend.portable ..\chocolatey-package-localsend.portable Once created, simply run `update.ps1` from within the created directory/junction point. Assuming all goes well, all relevant files should change to reflect the latest version available. This will also build a new package version using the modified files. +To forcibly create an updated package (regardless of whether a new software version is available), pass the `-Force` switch: + +```powershell +.\update.ps1 -Force +``` + Before submitting a pull request, please [test the package](https://docs.chocolatey.org/en-us/community-repository/moderation/package-verifier#steps-for-each-package) using the [Chocolatey Testing Environment](https://github.com/chocolatey-community/chocolatey-test-environment) first. diff --git a/update.ps1 b/update.ps1 index 3dd3d9f..5070238 100644 --- a/update.ps1 +++ b/update.ps1 @@ -1,3 +1,5 @@ +[CmdletBinding()] +param([switch] $Force) Import-Module au $currentPath = (Split-Path $MyInvocation.MyCommand.Definition) @@ -56,4 +58,4 @@ function global:au_SearchReplace { } } -Update-Package -ChecksumFor None -NoReadme +Update-Package -ChecksumFor None -Force:$Force -NoReadme