Skip to content

Conversation

@paul-cossey
Copy link
Contributor

Hi, @scriptingosx

This PR adds in MunkiInstallsItemsCreator to create an installs array with derive_minimum_os_version.

Output from a -v run

autopkg run -v TeXLiveUtility.munki.recipe
Looking for com.github.scriptingosx.pkg.TeXLiveUtility...
Did not find com.github.scriptingosx.pkg.TeXLiveUtility in recipe map
Rebuilding recipe map with current working directories...
Looking for com.github.scriptingosx.pkg.TeXLiveUtility...
Found com.github.scriptingosx.pkg.TeXLiveUtility in recipe map
Looking for com.github.scriptingosx.download.TeXLiveUtility...
Found com.github.scriptingosx.download.TeXLiveUtility in recipe map
**load_recipe time: 0.017127333994721994
Processing TeXLiveUtility.munki.recipe...
WARNING: TeXLiveUtility.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
GitHubReleasesInfoProvider
GitHubReleasesInfoProvider: Selected asset 'TeX.Live.Utility.app-1.54.zip' from tag '1.54' at url https://github.com/amaxwell/tlutility/releases/download/1.54/TeX.Live.Utility.app-1.54.zip
URLDownloader
URLDownloader: Storing new Last-Modified header: Sat, 18 Feb 2023 22:52:43 GMT
URLDownloader: Storing new ETag header: "0x8DB1202D8BA44D1"
URLDownloader: Downloaded /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/downloads/TeX.Live.Utility.app-1.54.zip
EndOfCheckPhase
PkgRootCreator
PkgRootCreator: Created /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility
PkgRootCreator: Created /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility/Applications
PkgRootCreator: Created /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility/Applications/TeX
Unarchiver
Unarchiver: Guessed archive format 'zip' from filename TeX.Live.Utility.app-1.54.zip
Unarchiver: Unarchived /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/downloads/TeX.Live.Utility.app-1.54.zip to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility/Applications/TeX
PlistReader
PlistReader: Reading: /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility/Applications/TeX/TeX Live Utility.app/Contents/Info.plist
PlistReader: Assigning value of 'com.googlecode.mactlmgr.tlu' to output variable 'bundle_id'
PlistReader: Assigning value of '1.54' to output variable 'version'
PkgCreator
PkgCreator: Connecting
PkgCreator: Sending packaging request
PkgCreator: Disconnecting
MunkiInstallsItemsCreator
MunkiInstallsItemsCreator: Created installs item for /Applications/TeX/TeX Live Utility.app
MunkiInstallsItemsCreator: Derived minimum os version as: 10.9.0
MunkiPkginfoMerger
MunkiPkginfoMerger: Merged {'installs': [{'CFBundleIdentifier': 'com.googlecode.mactlmgr.tlu', 'CFBundleName': 'TeX Live Utility', 'CFBundleShortVersionString': '1.54', 'CFBundleVersion': '1.54', 'minosversion': '10.9.0', 'path': '/Applications/TeX/TeX Live Utility.app', 'type': 'application', 'version_comparison_key': 'CFBundleShortVersionString'}], 'minimum_os_version': '10.9.0'} into pkginfo
MunkiPkginfoMerger
MunkiPkginfoMerger: Merged {'version': '1.54'} into pkginfo
MunkiImporter
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/TeXLiveUtility/TeXLiveUtility-1.54.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/TeXLiveUtility/TeXLiveUtility-1.54.pkg
Receipt written to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/receipts/TeXLiveUtility.munki-receipt-20250422-123735.plist

The following new items were downloaded:
    Download Path                                                                                                                  
    -------------                                                                                                                  
    /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/downloads/TeX.Live.Utility.app-1.54.zip  

The following packages were built:
    Identifier                   Version  Pkg Path                                                                                                       
    ----------                   -------  --------                                                                                                       
    com.googlecode.mactlmgr.tlu  1.54     /Users/paul.cossey/Library/AutoPkg/Cache/com.github.scriptingosx.munki.TeXLiveUtility/TeXLiveUtility-1.54.pkg  

The following new items were imported into Munki:
    Name            Version  Catalogs  Pkginfo Path                                   Pkg Repo Path                                Icon Repo Path  
    ----            -------  --------  ------------                                   -------------                                --------------  
    TeXLiveUtility  1.54     testing   apps/TeXLiveUtility/TeXLiveUtility-1.54.plist  apps/TeXLiveUtility/TeXLiveUtility-1.54.pkg  

Add in MunkiInstallsItemsCreator
- Adds CodeSignatureVerifier steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant