VCarve Pro 11.0: Don't include installers, they are too big

This commit is contained in:
Adam Goldsmith 2022-07-31 16:48:40 -04:00
parent 68f8f00dc2
commit 98f41c556b
6 changed files with 8 additions and 10 deletions

View File

@ -1,10 +1,8 @@
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$packageArgs = @{ $packageArgs = @{
packageName = $env:ChocolateyPackageName packageName = $env:ChocolateyPackageName
FileType = 'exe' FileType = 'exe'
SilentArgs = '/S' SilentArgs = '/S'
File64 = Join-Path $toolsDir 'VCarveProMakerspaceEditionV11008_Setup.exe' File64 = '\\ucs\software\VCarveProMakerspaceEditionV11015_Setup.exe'
Checksum64 = '8f7476e8f68f00d07335ffef4369f3dce827ceb236ace1f8211137fb9542ba99' Checksum64 = '8f7476e8f68f00d07335ffef4369f3dce827ceb236ace1f8211137fb9542ba99'
ChecksumType64 = 'sha256' ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223) ValidExitCodes = @(0, 1223)

View File

@ -16,6 +16,6 @@ fi
echo "Current version for ${PWD##*/}: major=$major_version, minor=$minor_version, checksum=$checksum" 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 "s|<version>[^<]*</version>|<version>$minor_version</version>|" "${PWD##*/}.nuspec"
sed -i "/File64/s|[^\\]*$|${file##*/}'|" tools/chocolateyInstall.ps1
sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1 sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1

View File

@ -18,6 +18,6 @@
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="tools/**" target="tools" /> <file src="tools/*.ps1" target="tools" />
</files> </files>
</package> </package>

View File

@ -1,10 +1,8 @@
$toolsDir = Split-Path -Parent $MyInvocation.MyCommand.Definition
$packageArgs = @{ $packageArgs = @{
packageName = $env:ChocolateyPackageName packageName = $env:ChocolateyPackageName
FileType = 'exe' FileType = 'exe'
SilentArgs = '/S' SilentArgs = '/S'
File64 = Join-Path $toolsDir 'VCarveProTrialEdition_Setup.exe' File64 = '\\ucs\software\VCarveProTrialEditionV11015_Setup.exe'
Checksum64 = '1088a6b21d6df5edecc7ac2a67b3866be5faf3c600c561404ebfe448a16bbc31' Checksum64 = '1088a6b21d6df5edecc7ac2a67b3866be5faf3c600c561404ebfe448a16bbc31'
ChecksumType64 = 'sha256' ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223) ValidExitCodes = @(0, 1223)

View File

@ -9,6 +9,7 @@ version=$(7z e -so $file ProductInfo.ini | awk -F= '$1=="product_version" { prin
major_version=$(awk -F. -v RS='\r\n' '{print $1"."$2}' <<< $version) major_version=$(awk -F. -v RS='\r\n' '{print $1"."$2}' <<< $version)
minor_version=$(awk -F. -v RS='\r\n' '{print $3"."$4}' <<< $version) minor_version=$(awk -F. -v RS='\r\n' '{print $3"."$4}' <<< $version)
checksum=$(sha256sum $file | awk '{print $1}') checksum=$(sha256sum $file | awk '{print $1}')
versioned_file_name="VCarveProTrialEditionV${major_version/.}${minor_version/.}_Setup.exe"
if [ "$major_version" != "11.0" ] if [ "$major_version" != "11.0" ]
then then
@ -16,7 +17,8 @@ then
exit 1 exit 1
fi fi
echo "Current version for ${PWD##*/}: major=$major_version, minor=$minor_version, checksum=$checksum" echo "Current version for ${PWD##*/}: major=$major_version, minor=$minor_version, checksum=$checksum, filename=$versioned_file_name"
sed -i "s|<version>[^<]*</version>|<version>$minor_version</version>|" "${PWD##*/}.nuspec" sed -i "s|<version>[^<]*</version>|<version>$minor_version</version>|" "${PWD##*/}.nuspec"
sed -i "/File64/s|[^\\]*$|${versioned_file_name}'|" tools/chocolateyInstall.ps1
sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1 sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1

View File

@ -18,6 +18,6 @@
</dependencies> </dependencies>
</metadata> </metadata>
<files> <files>
<file src="tools/**" target="tools" /> <file src="tools/*.ps1" target="tools" />
</files> </files>
</package> </package>