Skip to content

Comments

FIXED: OBS file name format changed #1335#1344

Merged
BigMacAdmin merged 1 commit intoInstallomator:mainfrom
greatkemo:obs
Mar 29, 2024
Merged

FIXED: OBS file name format changed #1335#1344
BigMacAdmin merged 1 commit intoInstallomator:mainfrom
greatkemo:obs

Conversation

@greatkemo
Copy link
Contributor

Updated the OBS label to use the sparkle feed, it seems more robust than the github approach.

2023-11-22 17:35:33 : REQ : obs : ################## Start Installomator v. 10.6beta, date 2023-11-22
2023-11-22 17:35:33 : INFO : obs : ################## Version: 10.6beta
2023-11-22 17:35:33 : INFO : obs : ################## Date: 2023-11-22
2023-11-22 17:35:33 : INFO : obs : ################## obs
2023-11-22 17:35:33 : DEBUG : obs : DEBUG mode 1 enabled.
2023-11-22 17:35:35 : DEBUG : obs : name=OBS
2023-11-22 17:35:35 : DEBUG : obs : appName=
2023-11-22 17:35:35 : DEBUG : obs : type=dmg
2023-11-22 17:35:35 : DEBUG : obs : archiveName=obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : downloadURL=https://cdn-fastly.obsproject.com/downloads/obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : curlOptions=
2023-11-22 17:35:35 : DEBUG : obs : appNewVersion=30.0.0
2023-11-22 17:35:35 : DEBUG : obs : appCustomVersion function: Not defined
2023-11-22 17:35:35 : DEBUG : obs : versionKey=CFBundleShortVersionString
2023-11-22 17:35:35 : DEBUG : obs : packageID=
2023-11-22 17:35:35 : DEBUG : obs : pkgName=
2023-11-22 17:35:35 : DEBUG : obs : choiceChangesXML=
2023-11-22 17:35:35 : DEBUG : obs : expectedTeamID=2MMRE5MTB8
2023-11-22 17:35:35 : DEBUG : obs : blockingProcesses=OBS Studio
2023-11-22 17:35:35 : DEBUG : obs : installerTool=
2023-11-22 17:35:35 : DEBUG : obs : CLIInstaller=
2023-11-22 17:35:35 : DEBUG : obs : CLIArguments=
2023-11-22 17:35:35 : DEBUG : obs : updateTool=
2023-11-22 17:35:35 : DEBUG : obs : updateToolArguments=
2023-11-22 17:35:35 : DEBUG : obs : updateToolRunAsCurrentUser=
2023-11-22 17:35:35 : INFO : obs : BLOCKING_PROCESS_ACTION=tell_user
2023-11-22 17:35:35 : INFO : obs : NOTIFY=success
2023-11-22 17:35:35 : INFO : obs : LOGGING=DEBUG
2023-11-22 17:35:35 : INFO : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-11-22 17:35:35 : INFO : obs : Label type: dmg
2023-11-22 17:35:35 : INFO : obs : archiveName: obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : Changing directory to /Users/someuser/Documents/GitHub/Installomator/build
2023-11-22 17:35:35 : INFO : obs : App(s) found: /Applications/OBS.app
2023-11-22 17:35:35 : INFO : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2023-11-22 17:35:35 : INFO : obs : appversion: 29.1.3
2023-11-22 17:35:35 : INFO : obs : Latest version of OBS is 30.0.0
2023-11-22 17:35:35 : INFO : obs : obs-studio-30.0.0-macos-apple.dmg exists and DEBUG mode 1 enabled, skipping download
2023-11-22 17:35:35 : DEBUG : obs : DEBUG mode 1, not checking for blocking processes
2023-11-22 17:35:35 : REQ : obs : Installing OBS
2023-11-22 17:35:35 : INFO : obs : Mounting /Users/someuser/Documents/GitHub/Installomator/build/obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:36 : DEBUG : obs : Debugging enabled, dmgmount output was:
expected CRC32 $F2112CCD
/dev/disk5 GUID_partition_scheme
/dev/disk5s1 Apple_HFS /Volumes/OBS Studio 30.0.0 (Apple)

2023-11-22 17:35:36 : INFO : obs : Mounted: /Volumes/OBS Studio 30.0.0 (Apple) 2023-11-22 17:35:36 : INFO : obs : Verifying: /Volumes/OBS Studio 30.0.0 (Apple)/OBS.app
2023-11-22 17:35:36 : DEBUG : obs : App size: 391M /Volumes/OBS Studio 30.0.0 (Apple)/OBS.app
2023-11-22 17:35:40 : DEBUG : obs : Debugging enabled, App Verification output was:
/Volumes/OBS Studio 30.0.0 (Apple)/OBS.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Wizards of OBS LLC (2MMRE5MTB8)

2023-11-22 17:35:40 : INFO : obs : Team ID matching: 2MMRE5MTB8 (expected: 2MMRE5MTB8 ) 2023-11-22 17:35:40 : INFO : obs : Downloaded version of OBS is 30.0.0 on versionKey CFBundleShortVersionString (replacing version 29.1.3). 2023-11-22 17:35:40 : INFO : obs : App has LSMinimumSystemVersion: 11.0 2023-11-22 17:35:40 : DEBUG : obs : DEBUG mode 1 enabled, skipping remove, copy and chown steps 2023-11-22 17:35:40 : INFO : obs : Finishing...
2023-11-22 17:35:43 : INFO : obs : App(s) found: /Applications/OBS.app 2023-11-22 17:35:44 : INFO : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2023-11-22 17:35:44 : REQ : obs : Installed OBS, version 30.0.0
2023-11-22 17:35:44 : INFO : obs : notifying
2023-11-22 17:35:44 : DEBUG : obs : Unmounting /Volumes/OBS Studio 30.0.0 (Apple)
2023-11-22 17:35:44 : DEBUG : obs : Debugging enabled, Unmounting output was:
"disk5" ejected.
2023-11-22 17:35:44 : DEBUG : obs : DEBUG mode 1, not reopening anything
2023-11-22 17:35:44 : REQ : obs : All done!
2023-11-22 17:35:44 : REQ : obs : ################## End Installomator, exit code 0

Updated the OBS label to use the sparkle feed, it seems more robust than the github approach.

2023-11-22 17:35:33 : REQ   : obs : ################## Start Installomator v. 10.6beta, date 2023-11-22
2023-11-22 17:35:33 : INFO  : obs : ################## Version: 10.6beta
2023-11-22 17:35:33 : INFO  : obs : ################## Date: 2023-11-22
2023-11-22 17:35:33 : INFO  : obs : ################## obs
2023-11-22 17:35:33 : DEBUG : obs : DEBUG mode 1 enabled.
2023-11-22 17:35:35 : DEBUG : obs : name=OBS
2023-11-22 17:35:35 : DEBUG : obs : appName=
2023-11-22 17:35:35 : DEBUG : obs : type=dmg
2023-11-22 17:35:35 : DEBUG : obs : archiveName=obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : downloadURL=https://cdn-fastly.obsproject.com/downloads/obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : curlOptions=
2023-11-22 17:35:35 : DEBUG : obs : appNewVersion=30.0.0
2023-11-22 17:35:35 : DEBUG : obs : appCustomVersion function: Not defined
2023-11-22 17:35:35 : DEBUG : obs : versionKey=CFBundleShortVersionString
2023-11-22 17:35:35 : DEBUG : obs : packageID=
2023-11-22 17:35:35 : DEBUG : obs : pkgName=
2023-11-22 17:35:35 : DEBUG : obs : choiceChangesXML=
2023-11-22 17:35:35 : DEBUG : obs : expectedTeamID=2MMRE5MTB8
2023-11-22 17:35:35 : DEBUG : obs : blockingProcesses=OBS Studio
2023-11-22 17:35:35 : DEBUG : obs : installerTool=
2023-11-22 17:35:35 : DEBUG : obs : CLIInstaller=
2023-11-22 17:35:35 : DEBUG : obs : CLIArguments=
2023-11-22 17:35:35 : DEBUG : obs : updateTool=
2023-11-22 17:35:35 : DEBUG : obs : updateToolArguments=
2023-11-22 17:35:35 : DEBUG : obs : updateToolRunAsCurrentUser=
2023-11-22 17:35:35 : INFO  : obs : BLOCKING_PROCESS_ACTION=tell_user
2023-11-22 17:35:35 : INFO  : obs : NOTIFY=success
2023-11-22 17:35:35 : INFO  : obs : LOGGING=DEBUG
2023-11-22 17:35:35 : INFO  : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2023-11-22 17:35:35 : INFO  : obs : Label type: dmg
2023-11-22 17:35:35 : INFO  : obs : archiveName: obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:35 : DEBUG : obs : Changing directory to /Users/someuser/Documents/GitHub/Installomator/build
2023-11-22 17:35:35 : INFO  : obs : App(s) found: /Applications/OBS.app
2023-11-22 17:35:35 : INFO  : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2023-11-22 17:35:35 : INFO  : obs : appversion: 29.1.3
2023-11-22 17:35:35 : INFO  : obs : Latest version of OBS is 30.0.0
2023-11-22 17:35:35 : INFO  : obs : obs-studio-30.0.0-macos-apple.dmg exists and DEBUG mode 1 enabled, skipping download
2023-11-22 17:35:35 : DEBUG : obs : DEBUG mode 1, not checking for blocking processes
2023-11-22 17:35:35 : REQ   : obs : Installing OBS
2023-11-22 17:35:35 : INFO  : obs : Mounting /Users/someuser/Documents/GitHub/Installomator/build/obs-studio-30.0.0-macos-apple.dmg
2023-11-22 17:35:36 : DEBUG : obs : Debugging enabled, dmgmount output was:
expected   CRC32 $F2112CCD
/dev/disk5              GUID_partition_scheme
/dev/disk5s1            Apple_HFS                       /Volumes/OBS Studio 30.0.0 (Apple)

2023-11-22 17:35:36 : INFO  : obs : Mounted: /Volumes/OBS Studio 30.0.0 (Apple)
2023-11-22 17:35:36 : INFO  : obs : Verifying: /Volumes/OBS Studio 30.0.0 (Apple)/OBS.app
2023-11-22 17:35:36 : DEBUG : obs : App size: 391M      /Volumes/OBS Studio 30.0.0 (Apple)/OBS.app
2023-11-22 17:35:40 : DEBUG : obs : Debugging enabled, App Verification output was:
/Volumes/OBS Studio 30.0.0 (Apple)/OBS.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Wizards of OBS LLC (2MMRE5MTB8)

2023-11-22 17:35:40 : INFO  : obs : Team ID matching: 2MMRE5MTB8 (expected: 2MMRE5MTB8 )
2023-11-22 17:35:40 : INFO  : obs : Downloaded version of OBS is 30.0.0 on versionKey CFBundleShortVersionString (replacing version 29.1.3).
2023-11-22 17:35:40 : INFO  : obs : App has LSMinimumSystemVersion: 11.0
2023-11-22 17:35:40 : DEBUG : obs : DEBUG mode 1 enabled, skipping remove, copy and chown steps
2023-11-22 17:35:40 : INFO  : obs : Finishing...
2023-11-22 17:35:43 : INFO  : obs : App(s) found: /Applications/OBS.app
2023-11-22 17:35:44 : INFO  : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2023-11-22 17:35:44 : REQ   : obs : Installed OBS, version 30.0.0
2023-11-22 17:35:44 : INFO  : obs : notifying
2023-11-22 17:35:44 : DEBUG : obs : Unmounting /Volumes/OBS Studio 30.0.0 (Apple)
2023-11-22 17:35:44 : DEBUG : obs : Debugging enabled, Unmounting output was:
"disk5" ejected.
2023-11-22 17:35:44 : DEBUG : obs : DEBUG mode 1, not reopening anything
2023-11-22 17:35:44 : REQ   : obs : All done!
2023-11-22 17:35:44 : REQ   : obs : ################## End Installomator, exit code 0
Copy link
Contributor

@07-C9 07-C9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can confirm this fixed the issues I was having with the previous version of the label:

2024-01-04 18:28:34 : INFO : obs : App(s) found: /Applications/OBS.app

2024-01-04 18:28:34 : INFO : obs : found app at /Applications/OBS.app, version 27.1.3, on versionKey CFBundleShortVersionString

2024-01-04 18:28:34 : INFO : obs : appversion: 27.1.3

2024-01-04 18:28:34 : INFO : obs : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.

2024-01-04 18:28:34 : INFO : obs : Latest version of OBS is 30.0.2

2024-01-04 18:28:34 : REQ : obs : Downloading https://github.com/ to obs-studio-[0-9.]*-macos-x86_64.dmg

2024-01-04 18:28:34 : REQ : obs : no more blocking processes, continue with update

2024-01-04 18:28:34 : REQ : obs : Installing OBS

2024-01-04 18:28:34 : INFO : obs : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.2i1M72n8/obs-studio-[0-9.]*-macos-x86_64.dmg

hdiutil: attach failed - image not recognized

2024-01-04 18:28:34 : INFO : obs : Installomator did not close any apps, so no need to reopen any apps.

2024-01-04 18:28:34 : ERROR : obs : ERROR: Error mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.2i1M72n8/obs-studio-[0-9.]*-macos-x86_64.dmg error:

Log



2024-01-04 18:28:34 : REQ : obs : ################## End Installomator, exit code 3 

Error running script: return code was 3.

and after testing your change:

2024-01-04 18:46:17 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-01-04 18:46:17 : INFO  : obs : found app at /Applications/OBS.app, version 27.1.3, on versionKey CFBundleShortVersionString
2024-01-04 18:46:17 : INFO  : obs : appversion: 27.1.3
2024-01-04 18:46:17 : INFO  : obs : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2024-01-04 18:46:17 : INFO  : obs : Latest version of OBS is 30.0.2
2024-01-04 18:46:17 : REQ   : obs : Downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.0.2-macos-intel.dmg to obs-studio-30.0.2-macos-intel.dmg
2024-01-04 18:46:33 : REQ   : obs : no more blocking processes, continue with update
2024-01-04 18:46:34 : REQ   : obs : Installing OBS
2024-01-04 18:46:34 : INFO  : obs : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.Rc2RijNV/obs-studio-30.0.2-macos-intel.dmg
2024-01-04 18:46:36 : INFO  : obs : Mounted: /Volumes/OBS Studio 30.0.2 (Intel)
2024-01-04 18:46:36 : INFO  : obs : Verifying: /Volumes/OBS Studio 30.0.2 (Intel)/OBS.app
2024-01-04 18:46:48 : INFO  : obs : Team ID matching: 2MMRE5MTB8 (expected: 2MMRE5MTB8 )
2024-01-04 18:46:48 : INFO  : obs : Downloaded version of OBS is 30.0.2 on versionKey CFBundleShortVersionString (replacing version 27.1.3).
2024-01-04 18:46:48 : INFO  : obs : App has LSMinimumSystemVersion: 11.0
2024-01-04 18:46:48 : WARN  : obs : Removing existing /Applications/OBS.app
2024-01-04 18:46:49 : INFO  : obs : Copy /Volumes/OBS Studio 30.0.2 (Intel)/OBS.app to /Applications
2024-01-04 18:46:57 : WARN  : obs : Changing owner to Administrator
2024-01-04 18:46:58 : INFO  : obs : Finishing...
2024-01-04 18:47:01 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-01-04 18:47:02 : INFO  : obs : found app at /Applications/OBS.app, version 30.0.2, on versionKey CFBundleShortVersionString
2024-01-04 18:47:02 : REQ   : obs : Installed OBS, version 30.0.2
2024-01-04 18:47:13 : INFO  : obs : Installomator did not close any apps, so no need to reopen any apps.
2024-01-04 18:47:13 : REQ   : obs : All done!
2024-01-04 18:47:13 : REQ   : obs : ################## End Installomator, exit code 0 

Success!

@BigMacAdmin
Copy link
Collaborator

Trying to get through the backlog here, sorry for the delay.

Is there a good reason to move to parsing the Sparkle Feed rather than using Github Releases? Does the Github lag behind compared to updates posted to the Sparkle Feed?

@BigMacAdmin BigMacAdmin self-assigned this Mar 9, 2024
@BigMacAdmin BigMacAdmin added application adds or improves an application label waiting for response labels Mar 9, 2024
@BigMacAdmin BigMacAdmin mentioned this pull request Mar 9, 2024
@greatkemo
Copy link
Contributor Author

@BigMacAdmin Sorry for the late response. I was off sick all last week.

I am having trouble remembering the exact reason now, but I think it was because I found that due to the GitHub project having multiple versions and platforms on their release page. And I believe that the Sparkle approach was more consistent and efficient than than the GitHub approach, at least for OBS, that is.

@AndrewMBarnett
Copy link

I tested this updated version and it seems to work to pull the new version of OBS from the Github page.

obs)
name="OBS"
type="dmg"
if [[ $(arch) == "arm64" ]]; then
archiveName="obs-studio-[0-9.]-macos-Apple.dmg"
elif [[ $(arch) == "i386" ]]; then
archiveName="obs-studio-[0-9.]
-macOS-Intel.dmg"
fi
downloadURL=$(downloadURLFromGit obsproject obs-studio )
appNewVersion=$(versionFromGit obsproject obs-studio )
expectedTeamID="2MMRE5MTB8"
;;

@07-C9
Copy link
Contributor

07-C9 commented Mar 27, 2024

@greatkemo's fix that was working beautifully, started error'ing out for me. The appNewVersion isn't returning anything for me either.
I tried @AndrewMBarnett's and it seemed to error out for me as well.

I don't recall which of these was which, sorry.

Executing Policy OBS Studio (Auto Update Push)
Running script Installomator v10.5 - Auto Update or Enrollment...
Script exit code: 3
Script result: 2024-03-20 19:54:48 : REQ   :  : shifting arguments for Jamf
2024-03-20 19:54:48 : REQ   : obs : ################## Start Installomator v. 10.5, date 2023-10-15
2024-03-20 19:54:48 : INFO  : obs : ################## Version: 10.5
2024-03-20 19:54:48 : INFO  : obs : ################## Date: 2023-10-15
2024-03-20 19:54:48 : INFO  : obs : ################## obs
2024-03-20 19:54:49 : INFO  : obs : BLOCKING_PROCESS_ACTION=tell_user_then_kill
2024-03-20 19:54:49 : INFO  : obs : NOTIFY=silent
2024-03-20 19:54:49 : INFO  : obs : LOGGING=INFO
2024-03-20 19:54:49 : INFO  : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-03-20 19:54:49 : INFO  : obs : Label type: dmg
2024-03-20 19:54:49 : INFO  : obs : archiveName: obs-studio-[0-9.]-macOS-Intel.dmg
2024-03-20 19:54:49 : INFO  : obs : no blocking processes defined, using OBS as default
2024-03-20 19:54:49 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-03-20 19:54:50 : INFO  : obs : found app at /Applications/OBS.app, version 30.0.2, on versionKey CFBundleShortVersionString
2024-03-20 19:54:50 : INFO  : obs : appversion: 30.0.2
2024-03-20 19:54:50 : INFO  : obs : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2024-03-20 19:54:50 : INFO  : obs : Latest version of OBS is 30.1.0
2024-03-20 19:54:50 : REQ   : obs : Downloading https://github.com to obs-studio-[0-9.]-macOS-Intel.dmg
2024-03-20 19:54:50 : REQ   : obs : no more blocking processes, continue with update
2024-03-20 19:54:50 : REQ   : obs : Installing OBS
2024-03-20 19:54:50 : INFO  : obs : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ezXSUwlO/obs-studio-[0-9.]-macOS-Intel.dmg
hdiutil: attach failed - image not recognized
2024-03-20 19:54:50 : INFO  : obs : Installomator did not close any apps, so no need to reopen any apps.
2024-03-20 19:54:51 : ERROR : obs : ERROR: Error mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ezXSUwlO/obs-studio-[0-9.]-macOS-Intel.dmg error:
Log

2024-03-20 19:54:51 : REQ   : obs : ################## End Installomator, exit code 3 
Error running script: return code was 3.

Download URL on that one wasn't working correctly for me.

Other one:

Executing Policy OBS Studio (Auto Update Push)
Running script Installomator v10.5 - Auto Update or Enrollment...
Script exit code: 2
Script result: 2024-03-20 19:37:58 : REQ   :  : shifting arguments for Jamf
2024-03-20 19:37:59 : REQ   : obs : ################## Start Installomator v. 10.5, date 2023-10-15
2024-03-20 19:37:59 : INFO  : obs : ################## Version: 10.5
2024-03-20 19:37:59 : INFO  : obs : ################## Date: 2023-10-15
2024-03-20 19:37:59 : INFO  : obs : ################## obs
2024-03-20 19:38:00 : INFO  : obs : BLOCKING_PROCESS_ACTION=tell_user_then_kill
2024-03-20 19:38:00 : INFO  : obs : NOTIFY=silent
2024-03-20 19:38:00 : INFO  : obs : LOGGING=INFO
2024-03-20 19:38:00 : INFO  : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-03-20 19:38:00 : INFO  : obs : Label type: dmg
2024-03-20 19:38:00 : INFO  : obs : archiveName: obs-studio-30.1.0-macos-intel.dmg
2024-03-20 19:38:00 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-03-20 19:38:00 : INFO  : obs : found app at /Applications/OBS.app, version 30.0.2, on versionKey CFBundleShortVersionString
2024-03-20 19:38:00 : INFO  : obs : appversion: 30.0.2
2024-03-20 19:38:00 : INFO  : obs : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2024-03-20 19:38:00 : INFO  : obs : Latest version of OBS is 30.1.0
2024-03-20 19:38:00 : REQ   : obs : Downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg to obs-studio-30.1.0-macos-intel.dmg
2024-03-20 19:38:01 : ERROR : obs : error downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg
ls: obs-studio-30.1.0-macos-intel.dmg: No such file or directory
2024-03-20 19:38:01 : ERROR : obs : File list: 
2024-03-20 19:38:01 : ERROR : obs : File type: obs-studio-30.1.0-macos-intel.dmg: cannot open `obs-studio-30.1.0-macos-intel.dmg' (No such file or directory)
2024-03-20 19:38:01 : INFO  : obs : Installomator did not close any apps, so no need to reopen any apps.
2024-03-20 19:38:01 : ERROR : obs : ERROR: Error downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg error:
*   Trying 151.101.41.91:443...
* Connected to cdn-fastly.obsproject.com (151.101.41.91) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [330 bytes data]
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2849 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-AES128-GCM-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=cdn-fastly.obsproject.com
*  start date: Mar  6 21:52:00 2024 GMT
*  expire date: Apr  7 21:51:59 2025 GMT
*  subjectAltName: host "cdn-fastly.obsproject.com" matched cert's "cdn-fastly.obsproject.com"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2024 Q1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: cdn-fastly.obsproject.com]
* [HTTP/2] [1] [:path: /downloads/obs-studio-30.1.0-macos-intel.dmg]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /downloads/obs-studio-30.1.0-macos-intel.dmg HTTP/2

> Host: cdn-fastly.obsproject.com

> User-Agent: curl/8.4.0

> Accept: */*

> 

< HTTP/2 404 

< content-type: text/html

< x-content-type-options: nosniff

< x-xss-protection: 1; mode=block

< content-security-policy: default-src 'self' ; script-src 'self' 'unsafe-inline' 'unsafe-eval' www.googletagmanager.com www.google-analytics.com platform.twitter.com www.google.com www.gstatic.com www.recaptcha.net ; style-src 'self' 'unsafe-inline' ; img-src * data: blob: ; font-src 'self' fonts.googleapis.com fonts.gstatic.com ; connect-src 'self' opencollective.com www.google-analytics.com stats.g.doubleclick.net ; object-src 'none' ; child-src 'self' www.youtube.com www.google.com www.recaptcha.net ; frame-ancestors 'none' ; form-action 'self' www.paypal.com www.sandbox.paypal.com ; media-src 'self' pub.rachni.com ; block-all-mixed-content

< strict-transport-security: max-age=31557600; includeSubDomains; preload

< via: 1.1 varnish, 1.1 varnish

< accept-ranges: bytes

< date: Thu, 21 Mar 2024 02:38:01 GMT

< age: 43430

< x-served-by: cache-lga21981-LGA, cache-sjc1000097-SJC

< x-cache: HIT, HIT

< x-cache-hits: 1, 1

< x-timer: S1710988681.214868,VS0,VE1

< vary: Accept-Encoding

< alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400

< content-length: 153

* The requested URL returned error: 404
* Connection #0 to host cdn-fastly.obsproject.com left intact
curl: (22) The requested URL returned error: 404

2024-03-20 19:38:01 : REQ   : obs : ################## End Installomator, exit code 2 
Error running script: return code was 2.

Download URL appears to have 404'd.

Those were both on the same machine, just trying to get OBS updated.

I tried my hand at it and came up with this:

	name="OBS"
	type="dmg"
    appNewVersion=$(curl -s https://github.com/obsproject/obs-studio/releases | egrep -o "OBS Studio [0-9]+\.[0-9]+\.[0-9]+" | sed 's/OBS Studio //' | head -n 1)
	if [[ $(arch) == "arm64" ]]; then
	downloadURL="https://cdn-fastly.obsproject.com/downloads/obs-studio-${appNewVersion}-macos-apple.dmg"
	elif [[ $(arch) == "i386" ]]; then
	downloadURL="https://cdn-fastly.obsproject.com/downloads/obs-studio-${appNewVersion}-macos-intel.dmg"
	fi
	expectedTeamID="2MMRE5MTB8"
	;;

Not able to run it on any computers that have an outdated version of OBS, but as a fresh install it works on my machine:

[STEP 1 of 6]
Executing Policy OBS Studio
[STEP 2 of 6]
Running script 00_Prepare_SwiftDialog.sh...
Script exit code: 0
Script result: 
[STEP 3 of 6]
Running script Installomator v10.5 - Self Service...
Script exit code: 0
Script result: 2024-03-26 19:38:57 : REQ   :  : shifting arguments for Jamf
2024-03-26 19:38:57 : REQ   : obs : ################## Start Installomator v. 10.5, date 2023-10-15
2024-03-26 19:38:57 : INFO  : obs : ################## Version: 10.5
2024-03-26 19:38:57 : INFO  : obs : ################## Date: 2023-10-15
2024-03-26 19:38:57 : INFO  : obs : ################## obs
2024-03-26 19:38:58 : INFO  : obs : BLOCKING_PROCESS_ACTION=prompt_user_then_kill
2024-03-26 19:38:58 : INFO  : obs : NOTIFY=silent
2024-03-26 19:38:58 : INFO  : obs : LOGGING=INFO
2024-03-26 19:38:58 : INFO  : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-03-26 19:38:58 : INFO  : obs : Label type: dmg
2024-03-26 19:38:58 : INFO  : obs : archiveName: OBS.dmg
2024-03-26 19:38:58 : INFO  : obs : no blocking processes defined, using OBS as default
2024-03-26 19:38:58 : INFO  : obs : name: OBS, appName: OBS.app
2024-03-26 19:38:58.972 mdfind[19735:332045] [UserQueryParser] Loading keywords and predicates for locale "en_US"
2024-03-26 19:38:58.972 mdfind[19735:332045] [UserQueryParser] Loading keywords and predicates for locale "en"
2024-03-26 19:38:59.126 mdfind[19735:332045] Couldn't determine the mapping between prefab keywords and predicates.
2024-03-26 19:38:59 : WARN  : obs : No previous app found
2024-03-26 19:38:59 : WARN  : obs : could not find OBS.app
2024-03-26 19:38:59 : INFO  : obs : appversion: 
2024-03-26 19:38:59 : INFO  : obs : Label is not of type “updateronly”, and it’s set to use force to install or ignoring app store apps, so not using updateTool.
2024-03-26 19:38:59 : INFO  : obs : Latest version of OBS is 30.1.1
2024-03-26 19:38:59 : REQ   : obs : Downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.1-macos-apple.dmg to OBS.dmg
2024-03-26 19:39:04 : REQ   : obs : no more blocking processes, continue with update
2024-03-26 19:39:04 : REQ   : obs : Installing OBS
2024-03-26 19:39:04 : INFO  : obs : Mounting /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.3FOP6NElE7/OBS.dmg
2024-03-26 19:39:06 : INFO  : obs : Mounted: /Volumes/OBS Studio 30.1.1 (Apple)
2024-03-26 19:39:06 : INFO  : obs : Verifying: /Volumes/OBS Studio 30.1.1 (Apple)/OBS.app
2024-03-26 19:39:09 : INFO  : obs : Team ID matching: 2MMRE5MTB8 (expected: 2MMRE5MTB8 )
2024-03-26 19:39:09 : INFO  : obs : Installing OBS version 30.1.1 on versionKey CFBundleShortVersionString.
2024-03-26 19:39:09 : INFO  : obs : App has LSMinimumSystemVersion: 11.0
2024-03-26 19:39:09 : INFO  : obs : Copy /Volumes/OBS Studio 30.1.1 (Apple)/OBS.app to /Applications
2024-03-26 19:39:12 : WARN  : obs : Changing owner to me
2024-03-26 19:39:13 : INFO  : obs : Finishing...
2024-03-26 19:39:16 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-03-26 19:39:16 : INFO  : obs : found app at /Applications/OBS.app, version 30.1.1, on versionKey CFBundleShortVersionString
2024-03-26 19:39:16 : REQ   : obs : Installed OBS, version 30.1.1
2024-03-26 19:39:16 : INFO  : obs : Installomator did not close any apps, so no need to reopen any apps.
2024-03-26 19:39:16 : REQ   : obs : All done!
2024-03-26 19:39:16 : REQ   : obs : ################## End Installomator, exit code 0 
[STEP 4 of 6]
Running script zz_Quit_SwiftDialog.sh...
Script exit code: 0
Script result: Dialog: progress: complete
Dialog: progresstext: Done
Dialog: quit:
No matching processes were found
[STEP 5 of 6]
[STEP 6 of 6]

@greatkemo
Copy link
Contributor Author

@itsbradwhite

The 404 you were getting was due to issues with their site on the day or some network issue. After testing the label again, it is working as expected. From your output, it seems that appNewVersion is being scraped from the sparkle feed and applied; you can verify that from this line: 2024-03-20 19:38:00 : INFO : obs : Latest version of OBS is 30.1.0. Also, in this line: 2024-03-20 19:38:01 : ERROR : obs : error downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg If you were to paste that URL into a browser, it will download, so we can tell from this that the URL is correct as well.

To test, I ran the checkLabels script.

utils % ./checkLabels.sh obs
Total labels:
obs

Labels with "$(arch)" call:
obs

Architecture: i386

########## obs
Name: OBS
Download URL: https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-intel.dmg
Type: dmg
Version: 30.1.0
OK: downloadURL works OK
OK: download extension MATCH on dmg


Architecture: arm64

########## obs
Name: OBS
Download URL: https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-apple.dmg
Type: dmg
Version: 30.1.0
OK: downloadURL works OK
OK: download extension MATCH on dmg


No warnings detected!
No errors detected!
Done!

Then I ran the assemble script just to be sure:

utils % ./assemble.sh obs  
2024-03-27 14:40:05 : REQ   : obs : ################## Start Installomator v. 10.6beta, date 2024-03-27
2024-03-27 14:40:05 : INFO  : obs : ################## Version: 10.6beta
2024-03-27 14:40:05 : INFO  : obs : ################## Date: 2024-03-27
2024-03-27 14:40:05 : INFO  : obs : ################## obs
2024-03-27 14:40:05 : DEBUG : obs : DEBUG mode 1 enabled.
2024-03-27 14:40:07 : DEBUG : obs : name=OBS
2024-03-27 14:40:07 : DEBUG : obs : appName=
2024-03-27 14:40:07 : DEBUG : obs : type=dmg
2024-03-27 14:40:07 : DEBUG : obs : archiveName=obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:07 : DEBUG : obs : downloadURL=https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:07 : DEBUG : obs : curlOptions=
2024-03-27 14:40:07 : DEBUG : obs : appNewVersion=30.1.0
2024-03-27 14:40:07 : DEBUG : obs : appCustomVersion function: Not defined
2024-03-27 14:40:07 : DEBUG : obs : versionKey=CFBundleShortVersionString
2024-03-27 14:40:07 : DEBUG : obs : packageID=
2024-03-27 14:40:07 : DEBUG : obs : pkgName=
2024-03-27 14:40:07 : DEBUG : obs : choiceChangesXML=
2024-03-27 14:40:07 : DEBUG : obs : expectedTeamID=2MMRE5MTB8
2024-03-27 14:40:07 : DEBUG : obs : blockingProcesses=OBS Studio
2024-03-27 14:40:07 : DEBUG : obs : installerTool=
2024-03-27 14:40:07 : DEBUG : obs : CLIInstaller=
2024-03-27 14:40:07 : DEBUG : obs : CLIArguments=
2024-03-27 14:40:07 : DEBUG : obs : updateTool=
2024-03-27 14:40:07 : DEBUG : obs : updateToolArguments=
2024-03-27 14:40:07 : DEBUG : obs : updateToolRunAsCurrentUser=
2024-03-27 14:40:07 : INFO  : obs : BLOCKING_PROCESS_ACTION=tell_user
2024-03-27 14:40:07 : INFO  : obs : NOTIFY=success
2024-03-27 14:40:07 : INFO  : obs : LOGGING=DEBUG
2024-03-27 14:40:07 : INFO  : obs : LOGO=/System/Applications/App Store.app/Contents/Resources/AppIcon.icns
2024-03-27 14:40:07 : INFO  : obs : Label type: dmg
2024-03-27 14:40:07 : INFO  : obs : archiveName: obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:07 : DEBUG : obs : Changing directory to /Users/someuser/Documents/GitHub/Installomator/build
2024-03-27 14:40:07 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-03-27 14:40:07 : INFO  : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2024-03-27 14:40:07 : INFO  : obs : appversion: 29.1.3
2024-03-27 14:40:07 : INFO  : obs : Latest version of OBS is 30.1.0
2024-03-27 14:40:07 : REQ   : obs : Downloading https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-apple.dmg to obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:07 : DEBUG : obs : No Dialog connection, just download
2024-03-27 14:40:17 : DEBUG : obs : File list: -rw-r--r--  1 someuser  staff   160M Mar 27 14:40 obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:17 : DEBUG : obs : File type: obs-studio-30.1.0-macos-apple.dmg: lzfse encoded, lzvn compressed
2024-03-27 14:40:17 : DEBUG : obs : curl output was:
*   Trying 199.232.37.91:443...
* Connected to cdn-fastly.obsproject.com (199.232.37.91) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
} [330 bytes data]
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* (304) (IN), TLS handshake, Server hello (2):
{ [122 bytes data]
* (304) (IN), TLS handshake, Unknown (8):
{ [19 bytes data]
* (304) (IN), TLS handshake, Certificate (11):
{ [2849 bytes data]
* (304) (IN), TLS handshake, CERT verify (15):
{ [264 bytes data]
* (304) (IN), TLS handshake, Finished (20):
{ [36 bytes data]
* (304) (OUT), TLS handshake, Finished (20):
} [36 bytes data]
* SSL connection using TLSv1.3 / AEAD-CHACHA20-POLY1305-SHA256
* ALPN: server accepted h2
* Server certificate:
*  subject: CN=cdn-fastly.obsproject.com
*  start date: Mar  6 21:52:00 2024 GMT
*  expire date: Apr  7 21:51:59 2025 GMT
*  subjectAltName: host "cdn-fastly.obsproject.com" matched cert's "cdn-fastly.obsproject.com"
*  issuer: C=BE; O=GlobalSign nv-sa; CN=GlobalSign Atlas R3 DV TLS CA 2024 Q1
*  SSL certificate verify ok.
* using HTTP/2
* [HTTP/2] [1] OPENED stream for https://cdn-fastly.obsproject.com/downloads/obs-studio-30.1.0-macos-apple.dmg
* [HTTP/2] [1] [:method: GET]
* [HTTP/2] [1] [:scheme: https]
* [HTTP/2] [1] [:authority: cdn-fastly.obsproject.com]
* [HTTP/2] [1] [:path: /downloads/obs-studio-30.1.0-macos-apple.dmg]
* [HTTP/2] [1] [user-agent: curl/8.4.0]
* [HTTP/2] [1] [accept: */*]
> GET /downloads/obs-studio-30.1.0-macos-apple.dmg HTTP/2
> Host: cdn-fastly.obsproject.com
> User-Agent: curl/8.4.0
> Accept: */*
> 
< HTTP/2 200 
< content-type: application/octet-stream
< last-modified: Tue, 12 Mar 2024 23:33:00 GMT
< etag: "65f0e62c-a03fb5d"
< x-content-type-options: nosniff
< expires: Sat, 15 Jun 2024 21:12:15 GMT
< cache-control: max-age=7257600
< accept-ranges: bytes
< age: 311274
< date: Wed, 27 Mar 2024 11:40:08 GMT
< via: 1.1 varnish
< x-served-by: cache-lga21935-LGA
< x-cache: HIT
< x-cache-hits: 0
< x-timer: S1711539609.794144,VS0,VE1
< alt-svc: h3=":443";ma=86400,h3-29=":443";ma=86400,h3-27=":443";ma=86400
< content-length: 168033117
< 
{ [8067 bytes data]
* Connection #0 to host cdn-fastly.obsproject.com left intact

2024-03-27 14:40:17 : DEBUG : obs : DEBUG mode 1, not checking for blocking processes
2024-03-27 14:40:17 : REQ   : obs : Installing OBS
2024-03-27 14:40:17 : INFO  : obs : Mounting /Users/someuser/Documents/GitHub/Installomator/build/obs-studio-30.1.0-macos-apple.dmg
2024-03-27 14:40:21 : DEBUG : obs : Debugging enabled, dmgmount output was:
Checksumming Protective Master Boot Record (MBR : 0)…
Protective Master Boot Record (MBR :: verified   CRC32 $60293DF9
Checksumming GPT Header (Primary GPT Header : 1)…
GPT Header (Primary GPT Header : 1): verified   CRC32 $BFA96D97
Checksumming GPT Partition Data (Primary GPT Table : 2)…
GPT Partition Data (Primary GPT Tabl: verified   CRC32 $CDB6CB96
Checksumming  (Apple_Free : 3)…
(Apple_Free : 3): verified   CRC32 $00000000
Checksumming disk image (Apple_HFS : 4)…
disk image (Apple_HFS : 4): verified   CRC32 $6F7146F1
Checksumming  (Apple_Free : 5)…
(Apple_Free : 5): verified   CRC32 $00000000
Checksumming GPT Partition Data (Backup GPT Table : 6)…
GPT Partition Data (Backup GPT Table: verified   CRC32 $CDB6CB96
Checksumming GPT Header (Backup GPT Header : 7)…
GPT Header (Backup GPT Header : 7): verified   CRC32 $254FA500
verified   CRC32 $22990976
/dev/disk24             GUID_partition_scheme
/dev/disk24s1           Apple_HFS                       /Volumes/OBS Studio 30.1.0 (Apple)

2024-03-27 14:40:21 : INFO  : obs : Mounted: /Volumes/OBS Studio 30.1.0 (Apple)
2024-03-27 14:40:21 : INFO  : obs : Verifying: /Volumes/OBS Studio 30.1.0 (Apple)/OBS.app
2024-03-27 14:40:21 : DEBUG : obs : App size: 395M      /Volumes/OBS Studio 30.1.0 (Apple)/OBS.app
2024-03-27 14:40:26 : DEBUG : obs : Debugging enabled, App Verification output was:
/Volumes/OBS Studio 30.1.0 (Apple)/OBS.app: accepted
source=Notarized Developer ID
origin=Developer ID Application: Wizards of OBS LLC (2MMRE5MTB8)

2024-03-27 14:40:26 : INFO  : obs : Team ID matching: 2MMRE5MTB8 (expected: 2MMRE5MTB8 )
2024-03-27 14:40:26 : INFO  : obs : Downloaded version of OBS is 30.1.0 on versionKey CFBundleShortVersionString (replacing version 29.1.3).
2024-03-27 14:40:26 : INFO  : obs : App has LSMinimumSystemVersion: 11.0
2024-03-27 14:40:26 : DEBUG : obs : DEBUG mode 1 enabled, skipping remove, copy and chown steps
2024-03-27 14:40:26 : INFO  : obs : Finishing...
2024-03-27 14:40:29 : INFO  : obs : App(s) found: /Applications/OBS.app
2024-03-27 14:40:29 : INFO  : obs : found app at /Applications/OBS.app, version 29.1.3, on versionKey CFBundleShortVersionString
2024-03-27 14:40:29 : REQ   : obs : Installed OBS, version 30.1.0
2024-03-27 14:40:29 : INFO  : obs : notifying
2024-03-27 14:40:29 : DEBUG : obs : Unmounting /Volumes/OBS Studio 30.1.0 (Apple)
2024-03-27 14:40:30 : DEBUG : obs : Debugging enabled, Unmounting output was:
"disk24" ejected.
2024-03-27 14:40:30 : DEBUG : obs : DEBUG mode 1, not reopening anything
2024-03-27 14:40:30 : REQ   : obs : All done!
2024-03-27 14:40:30 : REQ   : obs : ################## End Installomator, exit code 0 

@BigMacAdmin
Copy link
Collaborator

Thank you!

@BigMacAdmin BigMacAdmin merged commit 81e2f13 into Installomator:main Mar 29, 2024
@BigMacAdmin
Copy link
Collaborator

I merged this, and then got word from @robjschroeder that the label wasn't working.

It looks like OBS missed posting a version on their sparkle feed that was available on github, leading this label using a version that was 2 weeks behind.

OBS then released a new version yesterday on both Sparkle and Github.

To me, this is a good reason to go back to using Github rather than the Sparkle feed, but I would appreciate anyone weighing in with more info. See PR #1581

@scriptingosx scriptingosx mentioned this pull request Aug 30, 2024
@scriptingosx scriptingosx added this to the v10.6 milestone Aug 30, 2024
@timnottom timnottom mentioned this pull request Sep 2, 2024
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 waiting for response

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants