Skip to content

Commit

Permalink
Replaced OBSBOT WebCam with OBSBOT Center
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pirie committed Mar 7, 2024
1 parent adac2c4 commit 860e0a1
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 2 deletions.
23 changes: 23 additions & 0 deletions OBSBOT/OBSBOTCenter.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Description: Downloads the latest version of OBSBOT Center.
Identifier: com.github.davidbpirie.download.OBSBOTCenter
MinimumVersion: 2.3.0

Input:
NAME: OBSBOTCenter
BASE_URL: https://www.obsbot.com/download/obsbot-tiny-series
re_pattern: .*href=\"(https:\/\/[^\"]*Obsbot_Center_OA_E_MacOS_[^\"]*\.dmg)\".*

Process:
- Processor: URLTextSearcher
Arguments:
result_output_var_name: url
url: '%BASE_URL%'

- Processor: URLDownloader

- Processor: EndOfCheckPhase

- Processor: CodeSignatureVerifier
Arguments:
input_path: '%pathname%/*.app'
requirement: identifier "com.obsbot.OBSBOT_Center" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = "7GJANK3822"
40 changes: 40 additions & 0 deletions OBSBOT/OBSBOTCenter.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Description: |
Downloads the latest version of OBSBOT Center and builds a package,
then uploads the package to Jamf Pro.
JSS_URL, API_USERNAME, and API_PASSWORD, and for non-cloud instances
SMB_URL, SMB_USERNAME and SMB_PASSWORD, are expected to be populated
in your AutoPkg preferences, override Input variables, or by
command-line keys.
Identifier: com.github.davidbpirie.jamf-upload.OBSBOTCenter
MinimumVersion: 2.3.0
ParentRecipe: com.github.davidbpirie.pkg.OBSBOTCenter

Input:
NAME: OBSBOTCenter
JAMF_CATEGORY: Photo & Video
JAMF_PKG_NAME: '%NAME%'
JAMF_PKG_INFO: Companion application for OBSBOT web cameras.
JAMF_PKG_NOTES: 'Generated and uploaded by AutoPkg'
JAMF_PKG_PRIORITY: '10'
JAMF_PKG_REBOOT_REQUIRED: 'False'
JAMF_PKG_OS_REQUIREMENTS: ''
JAMF_PKG_REQUIRED_PROCESSOR: None
JAMF_PKG_SEND_NOTIFICATION: 'False'
JAMF_PKG_REPLACE: 'False'
JAMF_PKG_REPLACE_METADATA: 'False'

Process:
- Processor: com.github.grahampugh.jamf-upload.processors/JamfPackageUploader
Arguments:
pkg_name: '%JAMF_PKG_NAME%-%version%.pkg'
pkg_category: '%JAMF_CATEGORY%'
pkg_info: '%JAMF_PKG_INFO%'
pkg_notes: '%JAMF_PKG_NOTES%'
pkg_priority: '%JAMF_PKG_PRIORITY%'
reboot_required: '%JAMF_PKG_REBOOT_REQUIRED%'
os_requirements: '%JAMF_PKG_OS_REQUIREMENTS%'
required_processor: '%JAMF_PKG_REQUIRED_PROCESSOR%'
send_notification: '%JAMF_PKG_SEND_NOTIFICATION%'
replace_pkg: '%JAMF_PKG_REPLACE%'
replace_pkg_metadata: '%JAMF_PKG_REPLACE_METADATA%'
13 changes: 13 additions & 0 deletions OBSBOT/OBSBOTCenter.pkg.recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Description: Downloads the latest version of OBSBOT Center, then builds a package.
Identifier: com.github.davidbpirie.pkg.OBSBOTCenter
ParentRecipe: com.github.davidbpirie.download.OBSBOTCenter
MinimumVersion: 2.3.0

Input:
NAME: OBSBOTCenter
PKG_ID: com.obsbot.OBSBOTCenter.pkg

Process:
- Processor: AppPkgCreator
Arguments:
bundleid: '%PKG_ID%'
7 changes: 5 additions & 2 deletions OBSBOT/OBSBOTWebCam.download.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ MinimumVersion: 2.3.0
Input:
NAME: OBSBOTWebCam
BASE_URL: https://www.obsbot.com/download/obsbot-tiny-series
re_pattern: .*href="(https:\/\/[^"]*Obsbot_WebCam_OA_E_MacOS_[^"]*\.dmg)".*
re_pattern: .*href=\"(https:\/\/[^\"]*Obsbot_WebCam_OA_E_MacOS_[^\"]*\.dmg)\".*

Process:
- Processor: DeprecationWarning
Arguments:
warning_message: OBSBOT WebCam has been re-named OBSBOT Center. Please switch to the replacement recipes.

- Processor: URLTextSearcher
Arguments:
re_pattern: <a href="([^"]*e\.dmg)"
result_output_var_name: url
url: '%BASE_URL%'

Expand Down

0 comments on commit 860e0a1

Please sign in to comment.