From 3457cf3b45236aca350eab092f29635c9a6ae87e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 16 Oct 2024 15:05:22 -0400 Subject: [PATCH] Use same update script for vcarve pro trial as makerspace edition --- vcarve-pro-trial-12.0/update.sh | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) mode change 100755 => 120000 vcarve-pro-trial-12.0/update.sh diff --git a/vcarve-pro-trial-12.0/update.sh b/vcarve-pro-trial-12.0/update.sh deleted file mode 100755 index 6f98f89..0000000 --- a/vcarve-pro-trial-12.0/update.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/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/update.sh b/vcarve-pro-trial-12.0/update.sh new file mode 120000 index 0000000..d0ea35d --- /dev/null +++ b/vcarve-pro-trial-12.0/update.sh @@ -0,0 +1 @@ +../vcarve-pro-makerspace-12.0/update.sh \ No newline at end of file