Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix URLTextSearcher pattern in FrameIOTransfer recipes #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 10 additions & 14 deletions FrameIO/FrameIOTransfer.download.recipe.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,30 @@
Comment: Created by MK 2024 11 26 Struggling
Description: Downloads the latest Frame IO
Identifier: com.github.markkenny.autopkg.download.frameiotransfer
MinimumVersion: 2.3
MinimumVersion: '2.3'

Input:
NAME: FrameIO Transfer
SEARCH_URL: https://frame.io/transfer
# SEARCH_PATTERN: (https://transferapp\.frame\.io/Frame\.io-Transfer/.*?/latest/darwin/x64/Frame.*\.dmg)
# My SEARCH_PATTERN regex is not good enough, and I can't skip the error!
# This download recipe doesn't work. See README.md

Process:
# - Processor: URLTextSearcher
# Arguments:
# re_pattern: '%SEARCH_PATTERN%'
# url: '%SEARCH_URL%'
- Processor: URLTextSearcher
Arguments:
re_pattern: 'href="(https://transferapp\.frame\.io/Frame\.io-Transfer/[a-f0-9]+/latest/darwin/x64/Frame\.io\+Transfer\.dmg)"'
url: 'https://frame.io/transfer'

- Processor: URLDownloader
Arguments:
filename: '%NAME%.dmg'
url: '%match%'

- Processor: Versioner
Arguments:
input_plist_path: '%pathname%/Frame.io Transfer.app/Contents/Info.plist'
plist_version_key: CFBundleShortVersionString

- Processor: EndOfCheckPhase

- Processor: CodeSignatureVerifier
Arguments:
input_path: '%pathname%/Frame.io Transfer.app'
requirement: identifier "com.frameio.transfer" 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] = "6D429SHX3Y"

- Processor: Versioner
Arguments:
input_plist_path: '%pathname%/Frame.io Transfer.app/Contents/Info.plist'
plist_version_key: CFBundleShortVersionString
2 changes: 1 addition & 1 deletion FrameIO/FrameIOTransfer.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Input:
Process:
- Processor: AppPkgCreator
Arguments:
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg'
app_path: '%pathname%/Frame.io Transfer.app'