From da4340e76c6bdbf31f16e8c93fa37dc25c13dbb3 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 15 Jul 2024 19:01:59 -0400 Subject: [PATCH] Add vcarve-pro-trial-12.0 --- .../tools/chocolateyInstall.ps1 | 11 +++++++++ .../tools/chocolateyUninstall.ps1 | 8 +++++++ vcarve-pro-trial-12.0/update.sh | 24 +++++++++++++++++++ .../vcarve-pro-trial-12.0.nuspec | 23 ++++++++++++++++++ 4 files changed, 66 insertions(+) create mode 100644 vcarve-pro-trial-12.0/tools/chocolateyInstall.ps1 create mode 100644 vcarve-pro-trial-12.0/tools/chocolateyUninstall.ps1 create mode 100755 vcarve-pro-trial-12.0/update.sh create mode 100644 vcarve-pro-trial-12.0/vcarve-pro-trial-12.0.nuspec diff --git a/vcarve-pro-trial-12.0/tools/chocolateyInstall.ps1 b/vcarve-pro-trial-12.0/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..bfd6cc5 --- /dev/null +++ b/vcarve-pro-trial-12.0/tools/chocolateyInstall.ps1 @@ -0,0 +1,11 @@ +$packageArgs = @{ + packageName = $env:ChocolateyPackageName + FileType = 'exe' + SilentArgs = '/S' + File64 = '\\ucs\software\VCarveProTrialEditionV12007_Setup.exe' + Checksum64 = '2cb9f3d08699c425daa41d7441fc01272179885b16b4634d71195011a9d6bc0c' + ChecksumType64 = 'sha256' + ValidExitCodes = @(0, 1223) +} + +Install-ChocolateyInstallPackage @packageArgs diff --git a/vcarve-pro-trial-12.0/tools/chocolateyUninstall.ps1 b/vcarve-pro-trial-12.0/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..0f47ee1 --- /dev/null +++ b/vcarve-pro-trial-12.0/tools/chocolateyUninstall.ps1 @@ -0,0 +1,8 @@ +$packageArgs = @{ + PackageName = 'vcarve-pro-trial-12.0' + FileType = 'exe' + File = 'C:\Program Files\VCarve Pro Trial Edition 12.0\uninst.exe' + SilentArgs = '/S' +} + +Uninstall-ChocolateyPackage @packageArgs diff --git a/vcarve-pro-trial-12.0/update.sh b/vcarve-pro-trial-12.0/update.sh new file mode 100755 index 0000000..6f98f89 --- /dev/null +++ b/vcarve-pro-trial-12.0/update.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" + +wget -N "https://storage.googleapis.com/vectric_public/VCarveProTrialEdition_Setup.exe" --directory-prefix tools/ + +file=tools/VCarveProTrialEdition_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}') +versioned_file_name="VCarveProTrialEditionV${major_version/.}${minor_version/.}_Setup.exe" + +if [ "$major_version" != "12.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, filename=$versioned_file_name" + +sed -i "s|[^<]*|$minor_version|" "${PWD##*/}.nuspec" +sed -i "/File64/s|[^\\]*$|${versioned_file_name}'|" tools/chocolateyInstall.ps1 +sed -i "/Checksum64/s|=.*|= '$checksum'|" tools/chocolateyInstall.ps1 diff --git a/vcarve-pro-trial-12.0/vcarve-pro-trial-12.0.nuspec b/vcarve-pro-trial-12.0/vcarve-pro-trial-12.0.nuspec new file mode 100644 index 0000000..6cae824 --- /dev/null +++ b/vcarve-pro-trial-12.0/vcarve-pro-trial-12.0.nuspec @@ -0,0 +1,23 @@ + + + + vcarve-pro-trial-12.0 + 0.7 + VCarve Pro Trial + Vectric Ltd + Adam + https://www.vectric.com/products/vcarve-pro + false + VCarve Pro provides a powerful but intuitive software solution for creating and cutting parts on a CNC Router. VCarve Pro gives you the power to produce complex 2D patterns with profile, pocket, drill and inlay toolpaths, plus gives you the ability to create designs with v-carving textures as well as import and machine unlimited Vectric 3D clipart or single model files. The 'Pro' edition gives you unlimited job and toolpath size, true shape nesting and job set-up sheets, ideally suited to a production environment. + CAM software for a CNC router. + + © 2005-2021 Vectric Limited. + router cnc shopbot + + + + + + + +