autopkg / hjuutilainen-recipes

Recipes for AutoPkg
MIT License
50 stars 76 forks source link

Update Obsidian.munki.recipe #199

Closed macmule closed 2 years ago

macmule commented 3 years ago

• set .download parent as parent • removed the un-needed steps after the above

Processing /Users/ben/Git/other-recipes/hjuutilainen-recipes/Obsidian/Obsidian.munki.recipe...
WARNING: /Users/ben/Git/other-recipes/hjuutilainen-recipes/Obsidian/Obsidian.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
GitHubReleasesInfoProvider
{'Input': {'GITHUB_TOKEN_PATH': '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',
           'asset_regex': 'Obsidian-[0-9\\.]+-universal\\.dmg',
           'github_repo': 'obsidianmd/obsidian-releases'}}
GitHubReleasesInfoProvider: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
GitHubReleasesInfoProvider: No value supplied for GITHUB_URL, setting default value of: https://api.github.com
GitHubReleasesInfoProvider: Matched regex 'Obsidian-[0-9\.]+-universal\.dmg' among asset(s): Obsidian-0.12.12-universal.dmg, Obsidian-0.12.12.AppImage, obsidian-0.12.12.asar.gz, obsidian-0.12.12.tar.gz, Obsidian.0.12.12.exe, obsidian_0.12.12_amd64.snap
GitHubReleasesInfoProvider: Selected asset 'Obsidian-0.12.12-universal.dmg' from release '0.12.12'
{'Output': {'release_notes': 'https://forum.obsidian.md/t/obsidian-release-v0-12-12-insider-build/21564',
            'url': 'https://github.com/obsidianmd/obsidian-releases/releases/download/v0.12.12/Obsidian-0.12.12-universal.dmg',
            'version': '0.12.12'}}
URLDownloader
{'Input': {'filename': 'Obsidian.dmg',
           'url': 'https://github.com/obsidianmd/obsidian-releases/releases/download/v0.12.12/Obsidian-0.12.12-universal.dmg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/downloads/Obsidian.dmg
{'Output': {'pathname': '/Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/downloads/Obsidian.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/downloads/Obsidian.dmg/Obsidian.app',
           'requirement': 'identifier "md.obsidian" 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] = "6JSW4SJWN9"',
           'strict_verification': True}}
CodeSignatureVerifier: Mounted disk image /Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/downloads/Obsidian.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification enabled...
CodeSignatureVerifier: /private/tmp/dmg.2c38rP/Obsidian.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.2c38rP/Obsidian.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.2c38rP/Obsidian.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/downloads/Obsidian.dmg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Productivity',
                       'description': 'A second brain, for you, forever. '
                                      'Obsidian is a powerful knowledge base '
                                      'that works on top of a local folder of '
                                      'plain text Markdown files.',
                       'developer': 'Obsidian',
                       'display_name': 'Obsidian',
                       'name': 'Obsidian',
                       'unattended_install': True},
           'repo_subdirectory': 'apps/Obsidian'}}
MunkiImporter: No value supplied for MUNKI_REPO_PLUGIN, setting default value of: FileRepo
MunkiImporter: No value supplied for MUNKILIB_DIR, setting default value of: /usr/local/munki
MunkiImporter: No value supplied for force_munki_repo_lib, setting default value of: False
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/Obsidian/Obsidian-0.12.12__1.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/Obsidian/Obsidian-0.12.12__1.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'Obsidian',
                                                       'pkg_repo_path': 'apps/Obsidian/Obsidian-0.12.12__1.dmg',
                                                       'pkginfo_path': 'apps/Obsidian/Obsidian-0.12.12__1.plist',
                                                       'version': '0.12.12'},
                                              'report_fields': ['name',
                                                                'version',
                                                                'catalogs',
                                                                'pkginfo_path',
                                                                'pkg_repo_path',
                                                                'icon_repo_path'],
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'imported into '
                                                              'Munki:'},
            'munki_info': {'_metadata': {'created_by': 'ben',
                                         'creation_date': datetime.datetime(2021, 8, 4, 21, 25, 10),
                                         'munki_version': '5.5.0.4360',
                                         'os_version': '10.15.7'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Productivity',
                           'description': 'A second brain, for you, forever. '
                                          'Obsidian is a powerful knowledge '
                                          'base that works on top of a local '
                                          'folder of plain text Markdown '
                                          'files.',
                           'developer': 'Obsidian',
                           'display_name': 'Obsidian',
                           'installer_item_hash': '1c7cf5ae0f49ade483cbda4ed27a02849a0b6978c70682b82f789e68827cbdc7',
                           'installer_item_location': 'apps/Obsidian/Obsidian-0.12.12__1.dmg',
                           'installer_item_size': 160743,
                           'installer_type': 'copy_from_dmg',
                           'installs': [{'CFBundleIdentifier': 'md.obsidian',
                                         'CFBundleName': 'Obsidian',
                                         'CFBundleShortVersionString': '0.12.12',
                                         'CFBundleVersion': '0.12.12',
                                         'minosversion': '10.11.0',
                                         'path': '/Applications/Obsidian.app',
                                         'type': 'application',
                                         'version_comparison_key': 'CFBundleShortVersionString'}],
                           'items_to_copy': [{'destination_path': '/Applications',
                                              'source_item': 'Obsidian.app'}],
                           'minimum_os_version': '10.11.0',
                           'name': 'Obsidian',
                           'unattended_install': True,
                           'uninstall_method': 'remove_copied_items',
                           'uninstallable': True,
                           'version': '0.12.12'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/Obsidian/Obsidian-0.12.12__1.dmg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/Obsidian/Obsidian-0.12.12__1.plist'}}
Receipt written to /Users/ben/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.Obsidian/receipts/Obsidian.munki-receipt-20210804-222510.plist

The following new items were imported into Munki:
    Name      Version  Catalogs  Pkginfo Path                             Pkg Repo Path                          Icon Repo Path
    ----      -------  --------  ------------                             -------------                          --------------
    Obsidian  0.12.12  testing   apps/Obsidian/Obsidian-0.12.12__1.plist  apps/Obsidian/Obsidian-0.12.12__1.dmg
hjuutilainen commented 3 years ago

The reason I'm using the pkg recipe as the parent is that the original Obsidian application has incorrect permissions for its icon file: https://github.com/autopkg/hjuutilainen-recipes/blob/61e99820f1afe5954ce3b651a0f1d04fdb6efe5b/Obsidian/Obsidian.pkg.recipe#L51

macmule commented 3 years ago

added that to the last commit :)

hjuutilainen commented 2 years ago

Thank you for the PR!