Skip to content

Commit 713c945

Browse files
committed
Add version placeholders.
1 parent b71cfd2 commit 713c945

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/chocolatey.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
id: version
3838
run: |
3939
echo "nuget=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
40+
sed -i "s/{VERSION}/${{ github.event.inputs.version }}/g" "tools/chocolateyinstall.ps1"
4041
sed -i "s/{VERSION}/${{ github.event.inputs.version }}/g" "openchrom.nuspec"
4142

4243
- name: Pack Release

tools/chocolateyInstall.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ $toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
44

55
$ZipArgs = @{
66
PackageName = $env:ChocolateyPackageName
7-
url = 'https://products.lablicate.com/openchrom/1.5.0/openchrom_win32.x86_64_1.5.0.zip'
7+
url = 'https://products.lablicate.com/openchrom/{VERSION}/openchrom_win32.x86_64_{VERSION}.zip'
88
checksum = '{SHA256CHECKSUM}'
99
ChecksumType = 'sha256'
1010
UnzipLocation = Join-Path (Split-Path $toolsDir) "$env:ChocolateyPackageName$env:ChocolateyPackageVersion"

0 commit comments

Comments
 (0)