vcarve-pro-makerspace-11.0: Internalize, bump to 1.5, add update script
This commit is contained in:
parent
8218bce9ff
commit
68f8f00dc2
@ -1,11 +1,13 @@
|
|||||||
|
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
|
||||||
|
|
||||||
$packageArgs = @{
|
$packageArgs = @{
|
||||||
packageName = $env:ChocolateyPackageName
|
packageName = $env:ChocolateyPackageName
|
||||||
FileType = 'exe'
|
FileType = 'exe'
|
||||||
SilentArgs = '/S'
|
SilentArgs = '/S'
|
||||||
Url64 = '\\ucs\software\VCarveProMakerspaceEditionV11008_Setup.exe'
|
File64 = Join-Path $toolsDir 'VCarveProMakerspaceEditionV11008_Setup.exe'
|
||||||
Checksum64 = 'b6f2243d832b87c89382da7df6f309580256572d0beb88189b54bd54d56bf6f7'
|
Checksum64 = '8f7476e8f68f00d07335ffef4369f3dce827ceb236ace1f8211137fb9542ba99'
|
||||||
ChecksumType64 = 'sha256'
|
ChecksumType64 = 'sha256'
|
||||||
ValidExitCodes = @(0, 1223)
|
ValidExitCodes = @(0, 1223)
|
||||||
}
|
}
|
||||||
|
|
||||||
Install-ChocolateyPackage @packageArgs
|
Install-ChocolateyInstallPackage @packageArgs
|
||||||
|
21
vcarve-pro-makerspace-11.0/update.sh
Executable file
21
vcarve-pro-makerspace-11.0/update.sh
Executable file
@ -0,0 +1,21 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd -- "$( dirname -- "${BASH_SOURCE[0]}" )"
|
||||||
|
|
||||||
|
file=$(ls tools/VCarveProMakerspaceEditionV110*_Setup.exe)
|
||||||
|
version=$(7z e -so $file ProductInfo.ini | awk -F= '$1=="product_version" { print $2 }')
|
||||||
|
major_version=$(awk -F. -v RS='\r\n' '{print $1"."$2}' <<< $version)
|
||||||
|
minor_version=$(awk -F. -v RS='\r\n' '{print $3"."$4}' <<< $version)
|
||||||
|
checksum=$(sha256sum $file | awk '{print $1}')
|
||||||
|
|
||||||
|
if [ "$major_version" != "11.0" ]
|
||||||
|
then
|
||||||
|
echo "Major version update! This probably won't really work well."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Current version for ${PWD##*/}: major=$major_version, minor=$minor_version, checksum=$checksum"
|
||||||
|
|
||||||
|
sed -i "/File64/s|'[^']*$|'${file##*/}'|" "${PWD##*/}.nuspec"
|
||||||
|
sed -i "s|<version>[^<]*</version>|<version>$minor_version</version>|" "${PWD##*/}.nuspec"
|
||||||
|
sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1
|
@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>vcarve-pro-makerspace-11.0</id>
|
<id>vcarve-pro-makerspace-11.0</id>
|
||||||
<version>0.8</version>
|
<version>1.5</version>
|
||||||
<title>VCarve Pro Makerspace Edition</title>
|
<title>VCarve Pro Makerspace Edition</title>
|
||||||
<authors>Vectric Ltd</authors>
|
<authors>Vectric Ltd</authors>
|
||||||
<owners>Adam</owners>
|
<owners>Adam</owners>
|
||||||
|
Loading…
Reference in New Issue
Block a user