File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 33<package xmlns =" http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd" >
44 <metadata >
55 <id >functions</id >
6- <version >0.2.36 </version >
6+ <version >0.2.57 </version >
77 <packageSourceUrl >https://github.com/iron-io/functions</packageSourceUrl >
88
99 <title >Iron.io Functions (Install)</title >
Original file line number Diff line number Diff line change 22
33$packageName = ' functions'
44$toolsDir = " $ ( Split-Path - parent $MyInvocation.MyCommand.Definition ) "
5- $url = ' https://github.com/iron-io/functions/releases/download/0.2.25 /fn.exe'
5+ $url = ' https://github.com/iron-io/functions/releases/download/0.2.57 /fn.exe'
66# $fileLocation = Join-Path $toolsDir 'NAME_OF_EMBEDDED_INSTALLER_FILE'
77# $fileLocation = '\\SHARE_LOCATION\to\INSTALLER_FILE'
88
Original file line number Diff line number Diff line change 44user=" iron"
55service=" functions"
66version_file=" api/version/version.go"
7+ # Chocolatey specific files
8+ chocolatey_spec_file=" fn/chocolatey/functions.nuspec"
9+ chocolatey_install_file=" fn/chocolatey/tools/chocolateyinstall.ps1"
10+
711tag=" latest"
812
913if [ -z $( grep -m1 -Eo " [0-9]+\.[0-9]+\.[0-9]+" $version_file ) ]; then
@@ -15,6 +19,12 @@ perl -i -pe 's/\d+\.\d+\.\K(\d+)/$1+1/e' $version_file
1519version=$( grep -m1 -Eo " [0-9]+\.[0-9]+\.[0-9]+" $version_file )
1620echo " Version: $version "
1721
22+ # Update chocolatey version
23+ sed ' s|<version>.*</version>|<version>' $version ' </version>|' $chocolatey_spec_file > " $chocolatey_spec_file .tmp"
24+ mv " $chocolatey_spec_file .tmp" $chocolatey_spec_file
25+ sed ' s|https://github.com/iron-io/functions/releases/download/.*/fn.exe|https://github.com/iron-io/functions/releases/download/' $version ' /fn.exe|' $chocolatey_install_file > " $chocolatey_install_file .tmp"
26+ mv " $chocolatey_install_file .tmp" $chocolatey_install_file
27+
1828make docker-build
1929
2030sed " s/release=.*/release=\" $version \" /g" fn/install.sh > fn/install.sh.tmp
You can’t perform that action at this time.
0 commit comments