Skip to content

Comments

Update snagit.sh#2182

Merged
bartreardon merged 1 commit intoInstallomator:mainfrom
jcmbowman:fix-snagit-label
Mar 23, 2025
Merged

Update snagit.sh#2182
bartreardon merged 1 commit intoInstallomator:mainfrom
jcmbowman:fix-snagit-label

Conversation

@jcmbowman
Copy link
Contributor

Add "last()" to item parsing to ensure latest version is grabbed when multiple versions are listed in sparkleData XML.

All questions must be filled out or your Pull Request will be closed for lack of information. The first three questions should be answered Yes before submitting the pull request.

Have you confirmed this pull request is not a duplicate?
YES

Is this pull request creating or modifying a label in the fragments/labels folder, and not Installomator.sh itself?
YES

Did you use our editorconfig file?
YES

Additional context Add any other context about the label or fix here.
XML Sparkle Data from Techsmith had 2 items - 2024.2.5 and 2024.4.0. I adjusted the appNewVersion and downloadURL variables to select the last item in the XML Sparkle Data instead of defaulting to the first. This allows Installomator to see the newest version, assuming they continue to list multiple items in oldest to newest, or increasing version number order.

Installomator log At the bottom of this pull request, provide a log of a label run by running Installomator in Terminal and saving the output. DEBUG=1 can be enabled but do not enable Debug logging level and please format the log using a code block!

Please identify any issues fixed by your pull request by including the issue number. (Example: "Fixes #XXXX")

./build/Installomator.sh snagit DEBUG=1
2025-02-10 12:21:39 : INFO  : snagit : setting variable from argument DEBUG=1
2025-02-10 12:21:39 : INFO  : snagit : Total items in argumentsArray: 1
2025-02-10 12:21:39 : INFO  : snagit : argumentsArray: DEBUG=1
2025-02-10 12:21:39 : REQ   : snagit : ################## Start Installomator v. 10.8beta, date 2025-02-10
2025-02-10 12:21:39 : INFO  : snagit : ################## Version: 10.8beta
2025-02-10 12:21:39 : INFO  : snagit : ################## Date: 2025-02-10
2025-02-10 12:21:39 : INFO  : snagit : ################## snagit
2025-02-10 12:21:39 : DEBUG : snagit : DEBUG mode 1 enabled.
2025-02-10 12:21:40 : INFO  : snagit : Reading arguments again: DEBUG=1
2025-02-10 12:21:40 : DEBUG : snagit : argument: DEBUG=1
2025-02-10 12:21:40 : DEBUG : snagit : name=Snagit 2024
2025-02-10 12:21:40 : DEBUG : snagit : appName=
2025-02-10 12:21:40 : DEBUG : snagit : type=dmg
2025-02-10 12:21:40 : DEBUG : snagit : archiveName=
2025-02-10 12:21:40 : DEBUG : snagit : downloadURL=https://download.techsmith.com//snagitmac/releases/2440/Snagit.dmg
2025-02-10 12:21:40 : DEBUG : snagit : curlOptions=
2025-02-10 12:21:40 : DEBUG : snagit : appNewVersion=2024.4.0
2025-02-10 12:21:40 : DEBUG : snagit : appCustomVersion function: Not defined
2025-02-10 12:21:40 : DEBUG : snagit : versionKey=CFBundleShortVersionString
2025-02-10 12:21:40 : DEBUG : snagit : packageID=
2025-02-10 12:21:40 : DEBUG : snagit : pkgName=
2025-02-10 12:21:40 : DEBUG : snagit : choiceChangesXML=
2025-02-10 12:21:40 : DEBUG : snagit : expectedTeamID=7TQL462TU8
2025-02-10 12:21:40 : DEBUG : snagit : blockingProcesses=
2025-02-10 12:21:40 : DEBUG : snagit : installerTool=
2025-02-10 12:21:40 : DEBUG : snagit : CLIInstaller=
2025-02-10 12:21:40 : DEBUG : snagit : CLIArguments=
2025-02-10 12:21:40 : DEBUG : snagit : updateTool=
2025-02-10 12:21:40 : DEBUG : snagit : updateToolArguments=
2025-02-10 12:21:40 : DEBUG : snagit : updateToolRunAsCurrentUser=
2025-02-10 12:21:40 : INFO  : snagit : BLOCKING_PROCESS_ACTION=tell_user
2025-02-10 12:21:40 : INFO  : snagit : NOTIFY=success
2025-02-10 12:21:40 : INFO  : snagit : LOGGING=DEBUG
2025-02-10 12:21:40 : INFO  : snagit : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2025-02-10 12:21:40 : INFO  : snagit : Label type: dmg
2025-02-10 12:21:40 : INFO  : snagit : archiveName: Snagit 2024.dmg
2025-02-10 12:21:40 : INFO  : snagit : no blocking processes defined, using Snagit 2024 as default
2025-02-10 12:21:40 : DEBUG : snagit : Changing directory to ./build
2025-02-10 12:21:40 : INFO  : snagit : name: Snagit 2024, appName: Snagit 2024.app
2025-02-10 12:21:40 : WARN  : snagit : No previous app found
2025-02-10 12:21:40 : WARN  : snagit : could not find Snagit 2024.app
2025-02-10 12:21:41 : INFO  : snagit : appversion: 
2025-02-10 12:21:41 : INFO  : snagit : Latest version of Snagit 2024 is 2024.4.0
2025-02-10 12:21:41 : INFO  : snagit : Snagit 2024.dmg exists and DEBUG mode 1 enabled, skipping download
2025-02-10 12:21:41 : DEBUG : snagit : DEBUG mode 1, not checking for blocking processes
2025-02-10 12:21:41 : REQ   : snagit : Installing Snagit 2024
2025-02-10 12:21:41 : INFO  : snagit : Mounting ./build/Snagit 2024.dmg
hdiutil: attach failed - No such file or directory
2025-02-10 12:21:41 : DEBUG : snagit : DEBUG mode 1, not reopening anything
2025-02-10 12:21:41 : ERROR : snagit : ERROR: Error mounting ./build/Snagit 2024.dmg error:
Log

2025-02-10 12:21:41 : REQ   : snagit : ################## End Installomator, exit code 3 

Add "last()" to item parsing to ensure latest version is grabbed when multiple versions are listed in sparkleData XML.
@bartreardon bartreardon added application adds or improves an application label validated App label that has been validated by the validation bot labels Feb 11, 2025
@bartreardon
Copy link
Collaborator

🤖 Validation robot 🤖
File fragments/labels/snagit.sh
** Label info:
├ ✅ correct line ending
├ ✅ Name: Snagit 2024
├ ✅ Type: dmg
├ ✅ Expected Team: 7TQL462TU8
├ ✅ App New Version: 2024.4.0
└ Download URL: https://download.techsmith.com//snagitmac/releases/2440/Snagit.dmg
├ ✅ URL is reachable
└ ✅ Download Size: 237.5 MB
✅ All checks passed


@bartreardon bartreardon added this to the v10.8 milestone Mar 21, 2025
@bartreardon
Copy link
Collaborator

Thank you!

@bartreardon bartreardon merged commit d2466e0 into Installomator:main Mar 23, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

application adds or improves an application label validated App label that has been validated by the validation bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants