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

Update FL_Studio Recipes to new Major Version #99

Closed
wants to merge 3 commits into from

Conversation

paul-cossey
Copy link
Contributor

Hi, @apizz

FL Studio 21 is now FL Studio 2024. This PR updated the download and Munki recipes to reflect the changes.

I kept running in to [Errno 66] Directory not empty: with PathDeleter to get around the issue, I've added in ChangeModeOwner processor and some extra PathDeleter steps.

Output from a successful -vv run

autopkg run -vv FLStudio.munki.recipe
Looking for com.github.apizz.pkg.FLStudio...
Did not find com.github.apizz.pkg.FLStudio in recipe map
Rebuilding recipe map with current working directories...
Looking for com.github.apizz.pkg.FLStudio...
Found com.github.apizz.pkg.FLStudio in recipe map
Looking for com.github.apizz.download.FLStudio...
Found com.github.apizz.download.FLStudio in recipe map
**load_recipe time: 0.007514750002883375
Processing FLStudio.munki.recipe...
WARNING: FLStudio.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'FLStudio.dmg',
           'request_headers': {'Referer': 'https://www.image-line.com/fl-studio-download/;auto',
                               'user-agent': 'Mozilla/5.0 (Macintosh; Intel '
                                             'Mac OS X 10_15_7) '
                                             'AppleWebKit/605.1.15 (KHTML, '
                                             'like Gecko) Version/16.1 '
                                             'Safari/605.1.15'},
           'url': 'https://support.image-line.com/redirect/flstudio20_mac_installer'}}
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/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
{'Output': {'pathname': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
FileFinder
{'Input': {'pattern': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg/Install*.pkg'}}
FileFinder: No value supplied for find_method, setting default value of: glob
FileFinder: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
FileFinder: Found file match: '/private/tmp/dmg.C5vZcB/Install FL Studio.pkg' from globbed '/private/tmp/dmg.C5vZcB/Install*.pkg'
FileFinder: DMG-relative file match: 'Install FL Studio.pkg'
FileFinder: Basename match: 'Install FL Studio.pkg'
{'Output': {'dmg_found_filename': 'Install FL Studio.pkg',
            'found_basename': 'Install FL Studio.pkg',
            'found_filename': '/private/tmp/dmg.C5vZcB/Install FL Studio.pkg'}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: image-line '
                                        '(N68WEP5ZZZ)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg/Install '
                         'FL Studio.pkg'}}
CodeSignatureVerifier: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Install FL Studio.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2024-06-27 14:20:47 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: image-line (N68WEP5ZZZ)
CodeSignatureVerifier:        Expires: 2027-10-25 13:05:28 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            BD A3 8F E5 68 44 35 97 24 4A 45 94 5C 68 7A B2 DB F7 E0 10 D0 1B 
CodeSignatureVerifier:            84 C5 F2 87 C7 7D 13 E5 62 52
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2031-09-17 00:00:00 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            F1 6C D3 C5 4C 7F 83 CE A4 BF 1A 3E 6A 08 19 C8 AA A8 E4 A1 52 8F 
CodeSignatureVerifier:            D1 44 71 5F 35 06 43 D2 DF 3A
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C 
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier: 
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack',
           'flat_pkg_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg/Install '
                            'FL Studio.pkg'}}
FlatPkgUnpacker: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.Px1yaa/Install FL Studio.pkg to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio',
           'pkg_payload_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack/FL_Studio.pkg/Payload'}}
PkgPayloadUnpacker: Unpacked /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack/FL_Studio.pkg/Payload to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio
{'Output': {}}
PlistReader
{'Input': {'info_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL '
                        'Studio 2024.app/Contents/Info.plist',
           'plist_keys': {'CFBundleVersion': 'version'}}}
PlistReader: Reading: /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL Studio 2024.app/Contents/Info.plist
PlistReader: Assigning value of '24.1.0.3875' to output variable 'version'
{'Output': {'plist_reader_output_variables': {'version': '24.1.0.3875'}}}
PkgCopier
{'Input': {'pkg_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg',
           'source_pkg': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg/Install '
                         'FL Studio.pkg'}}
PkgCopier: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
PkgCopier: Copied /private/tmp/dmg.IfwAJm/Install FL Studio.pkg to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg'},
                                          'summary_text': 'The following '
                                                          'packages were '
                                                          'copied:'},
            'pkg_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg'}}
MunkiInstallsItemsCreator
{'Input': {'derive_minimum_os_version': '',
           'faux_root': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio',
           'installs_item_paths': ['/Applications/FL Studio 2024.app']}}
MunkiInstallsItemsCreator: Created installs item for /Applications/FL Studio 2024.app
{'Output': {'additional_pkginfo': {'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                                 'CFBundleName': 'FL Studio',
                                                 'CFBundleShortVersionString': '24.1.0.3875',
                                                 'CFBundleVersion': '24.1.0.3875',
                                                 'path': '/Applications/FL '
                                                         'Studio 2024.app',
                                                 'type': 'application',
                                                 'version_comparison_key': 'CFBundleShortVersionString'}]}}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                                'CFBundleName': 'FL Studio',
                                                'CFBundleShortVersionString': '24.1.0.3875',
                                                'CFBundleVersion': '24.1.0.3875',
                                                'path': '/Applications/FL '
                                                        'Studio 2024.app',
                                                'type': 'application',
                                                'version_comparison_key': 'CFBundleShortVersionString'}]},
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Music',
                       'description': 'FL Studio is a complete software music '
                                      'production environment or Digital Audio '
                                      'Workstation (DAW). Representing more '
                                      'than 20 years of innovative development '
                                      'it has everything you need in one '
                                      'package to compose, arrange, record, '
                                      'edit, mix and master professional '
                                      'quality music.',
                       'developer': 'Image Line Software',
                       'display_name': 'FL Studio',
                       'minimum_os_version': '10.13.6',
                       'name': 'FLStudio',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio', 'CFBundleName': 'FL Studio', 'CFBundleShortVersionString': '24.1.0.3875', 'CFBundleVersion': '24.1.0.3875', 'path': '/Applications/FL Studio 2024.app', 'type': 'application', 'version_comparison_key': 'CFBundleShortVersionString'}]} into pkginfo
{'Output': {'pkginfo': {'catalogs': ['testing'],
                        'category': 'Music',
                        'description': 'FL Studio is a complete software music '
                                       'production environment or Digital '
                                       'Audio Workstation (DAW). Representing '
                                       'more than 20 years of innovative '
                                       'development it has everything you need '
                                       'in one package to compose, arrange, '
                                       'record, edit, mix and master '
                                       'professional quality music.',
                        'developer': 'Image Line Software',
                        'display_name': 'FL Studio',
                        'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                      'CFBundleName': 'FL Studio',
                                      'CFBundleShortVersionString': '24.1.0.3875',
                                      'CFBundleVersion': '24.1.0.3875',
                                      'path': '/Applications/FL Studio '
                                              '2024.app',
                                      'type': 'application',
                                      'version_comparison_key': 'CFBundleShortVersionString'}],
                        'minimum_os_version': '10.13.6',
                        'name': 'FLStudio',
                        'unattended_install': True}}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'version': '24.1.0.3875'},
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Music',
                       'description': 'FL Studio is a complete software music '
                                      'production environment or Digital Audio '
                                      'Workstation (DAW). Representing more '
                                      'than 20 years of innovative development '
                                      'it has everything you need in one '
                                      'package to compose, arrange, record, '
                                      'edit, mix and master professional '
                                      'quality music.',
                       'developer': 'Image Line Software',
                       'display_name': 'FL Studio',
                       'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                     'CFBundleName': 'FL Studio',
                                     'CFBundleShortVersionString': '24.1.0.3875',
                                     'CFBundleVersion': '24.1.0.3875',
                                     'path': '/Applications/FL Studio 2024.app',
                                     'type': 'application',
                                     'version_comparison_key': 'CFBundleShortVersionString'}],
                       'minimum_os_version': '10.13.6',
                       'name': 'FLStudio',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'version': '24.1.0.3875'} into pkginfo
{'Output': {'pkginfo': {'catalogs': ['testing'],
                        'category': 'Music',
                        'description': 'FL Studio is a complete software music '
                                       'production environment or Digital '
                                       'Audio Workstation (DAW). Representing '
                                       'more than 20 years of innovative '
                                       'development it has everything you need '
                                       'in one package to compose, arrange, '
                                       'record, edit, mix and master '
                                       'professional quality music.',
                        'developer': 'Image Line Software',
                        'display_name': 'FL Studio',
                        'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                      'CFBundleName': 'FL Studio',
                                      'CFBundleShortVersionString': '24.1.0.3875',
                                      'CFBundleVersion': '24.1.0.3875',
                                      'path': '/Applications/FL Studio '
                                              '2024.app',
                                      'type': 'application',
                                      'version_comparison_key': 'CFBundleShortVersionString'}],
                        'minimum_os_version': '10.13.6',
                        'name': 'FLStudio',
                        'unattended_install': True,
                        'version': '24.1.0.3875'}}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Music',
                       'description': 'FL Studio is a complete software music '
                                      'production environment or Digital Audio '
                                      'Workstation (DAW). Representing more '
                                      'than 20 years of innovative development '
                                      'it has everything you need in one '
                                      'package to compose, arrange, record, '
                                      'edit, mix and master professional '
                                      'quality music.',
                       'developer': 'Image Line Software',
                       'display_name': 'FL Studio',
                       'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                     'CFBundleName': 'FL Studio',
                                     'CFBundleShortVersionString': '24.1.0.3875',
                                     'CFBundleVersion': '24.1.0.3875',
                                     'path': '/Applications/FL Studio 2024.app',
                                     'type': 'application',
                                     'version_comparison_key': 'CFBundleShortVersionString'}],
                       'minimum_os_version': '10.13.6',
                       'name': 'FLStudio',
                       'unattended_install': True,
                       'version': '24.1.0.3875'},
           'repo_subdirectory': 'apps/flstudio'}}
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/flstudio/FLStudio-24.1.0.3875__12.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/flstudio/FLStudio-24.1.0.3875__12.pkg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'FLStudio',
                                                       'pkg_repo_path': 'apps/flstudio/FLStudio-24.1.0.3875__12.pkg',
                                                       'pkginfo_path': 'apps/flstudio/FLStudio-24.1.0.3875__12.plist',
                                                       'version': '24.1.0.3875'},
                                              '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': 'paul.cossey',
                                         'creation_date': datetime.datetime(2024, 7, 1, 15, 20, 1),
                                         'munki_version': '6.3.2.4588',
                                         'os_version': '14.5'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Music',
                           'description': 'FL Studio is a complete software '
                                          'music production environment or '
                                          'Digital Audio Workstation (DAW). '
                                          'Representing more than 20 years of '
                                          'innovative development it has '
                                          'everything you need in one package '
                                          'to compose, arrange, record, edit, '
                                          'mix and master professional quality '
                                          'music.',
                           'developer': 'Image Line Software',
                           'display_name': 'FL Studio',
                           'installed_size': 2763282,
                           'installer_item_hash': '5aab7a354f867acf6ca99169165c997c6cc01dc68aac567c62625477ef623f8e',
                           'installer_item_location': 'apps/flstudio/FLStudio-24.1.0.3875__12.pkg',
                           'installer_item_size': 1240918,
                           'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio',
                                         'CFBundleName': 'FL Studio',
                                         'CFBundleShortVersionString': '24.1.0.3875',
                                         'CFBundleVersion': '24.1.0.3875',
                                         'path': '/Applications/FL Studio '
                                                 '2024.app',
                                         'type': 'application',
                                         'version_comparison_key': 'CFBundleShortVersionString'}],
                           'minimum_os_version': '10.13.6',
                           'name': 'FLStudio',
                           'receipts': [{'installed_size': 2741212,
                                         'packageid': 'com.Image-Line.pkg.24ONLINE',
                                         'version': '20.2'},
                                        {'installed_size': 22070,
                                         'packageid': 'com.Image-Line.pkg.flcloud.plugins',
                                         'version': '1.0'}],
                           'unattended_install': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '24.1.0.3875'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/flstudio/FLStudio-24.1.0.3875__12.pkg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/flstudio/FLStudio-24.1.0.3875__12.plist'}}
com.github.grahampugh.recipes.commonprocessors/ChangeModeOwner
{'Input': {'mode': '777',
           'resource_path': '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio'}}
ChangeModeOwner: No value supplied for owner, setting default value of: 
ChangeModeOwner: No value supplied for group, setting default value of: 
{'Output': {}}
PathDeleter
{'Input': {'path_list': ['/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack',
                         '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL '
                         'Studio 2024.app',
                         '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications',
                         '/Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio']}}
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL Studio 2024.app
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio
{'Output': {}}
Receipt written to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/receipts/FLStudio.munki-receipt-20240701-162021.plist

The following packages were copied:
    Pkg Path                                                                               
    --------                                                                               
    /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg  

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

Adds in a step to grab the `minimum_os_version` from the vendors website.

```
autopkg run -v FLStudio.munki.recipe
Looking for com.github.apizz.pkg.FLStudio...
Did not find com.github.apizz.pkg.FLStudio in recipe map
Rebuilding recipe map with current working directories...
Looking for com.github.apizz.pkg.FLStudio...
Found com.github.apizz.pkg.FLStudio in recipe map
Looking for com.github.apizz.download.FLStudio...
Found com.github.apizz.download.FLStudio in recipe map
**load_recipe time: 0.007654834000277333
Processing FLStudio.munki.recipe...
WARNING: FLStudio.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
URLDownloader: Storing new Last-Modified header: Fri, 05 Jul 2024 03:01:18 GMT
URLDownloader: Storing new ETag header: "c4a2dac3a1a56866a914167a7619621c"
URLDownloader: Downloaded /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
EndOfCheckPhase
FileFinder
FileFinder: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
FileFinder: Found file match: '/private/tmp/dmg.wYgZu8/Install FL Studio.pkg' from globbed '/private/tmp/dmg.wYgZu8/Install*.pkg'
FileFinder: DMG-relative file match: 'Install FL Studio.pkg'
FileFinder: Basename match: 'Install FL Studio.pkg'
CodeSignatureVerifier
CodeSignatureVerifier: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Install FL Studio.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Notarization: trusted by the Apple notary service
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2024-07-03 16:45:13 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: image-line (N68WEP5ZZZ)
CodeSignatureVerifier:        Expires: 2027-10-25 13:05:28 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            BD A3 8F E5 68 44 35 97 24 4A 45 94 5C 68 7A B2 DB F7 E0 10 D0 1B
CodeSignatureVerifier:            84 C5 F2 87 C7 7D 13 E5 62 52
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2031-09-17 00:00:00 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            F1 6C D3 C5 4C 7F 83 CE A4 BF 1A 3E 6A 08 19 C8 AA A8 E4 A1 52 8F
CodeSignatureVerifier:            D1 44 71 5F 35 06 43 D2 DF 3A
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
FlatPkgUnpacker
FlatPkgUnpacker: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.X2olxQ/Install FL Studio.pkg to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack
PkgPayloadUnpacker
PkgPayloadUnpacker: Unpacked /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack/FL_Studio.pkg/Payload to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio
PlistReader
PlistReader: Reading: /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL Studio 2024.app/Contents/Info.plist
PlistReader: Assigning value of '24.1.1.3884' to output variable 'version'
PkgCopier
PkgCopier: Mounted disk image /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg
PkgCopier: Copied /private/tmp/dmg.RkSzxw/Install FL Studio.pkg to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg
MunkiInstallsItemsCreator
MunkiInstallsItemsCreator: Created installs item for /Applications/FL Studio 2024.app
MunkiPkginfoMerger
MunkiPkginfoMerger: Merged {'installs': [{'CFBundleIdentifier': 'com.image-line.flstudio', 'CFBundleName': 'FL Studio', 'CFBundleShortVersionString': '24.1.1.3884', 'CFBundleVersion': '24.1.1.3884', 'path': '/Applications/FL Studio 2024.app', 'type': 'application', 'version_comparison_key': 'CFBundleShortVersionString'}]} into pkginfo
URLTextSearcher
URLTextSearcher: Found matching text (min_os_ver): 10.15
MunkiPkginfoMerger
MunkiPkginfoMerger: Merged {'version': '24.1.1.3884', 'minimum_os_version': '10.15'} 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/flstudio/FLStudio-24.1.1.3884__1.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/flstudio/FLStudio-24.1.1.3884__1.pkg
com.github.grahampugh.recipes.commonprocessors/ChangeModeOwner
PathDeleter
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/unpack
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications/FL Studio 2024.app
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio/Applications
PathDeleter: Deleted /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio
Receipt written to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/receipts/FLStudio.munki-receipt-20240709-142747.plist

The following new items were downloaded:
    Download Path
    -------------
    /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/downloads/FLStudio.dmg

The following packages were copied:
    Pkg Path
    --------
    /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/FLStudio.pkg

The following new items were imported into Munki:
    Name      Version      Catalogs  Pkginfo Path                                 Pkg Repo Path                              Icon Repo Path
    ----      -------      --------  ------------                                 -------------                              --------------
    FLStudio  24.1.1.3884  testing   apps/flstudio/FLStudio-24.1.1.3884__1.plist  apps/flstudio/FLStudio-24.1.1.3884__1.pkg
```
Switches to using an uninstall script as removepackages doesn't remove everything.
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
</dict>
<key>Processor</key>
<string>com.github.grahampugh.recipes.commonprocessors/ChangeModeOwner</string>
Copy link
Member

@apizz apizz Aug 20, 2024

Choose a reason for hiding this comment

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

I have no interest in including a non-standard autopkg processor as a requirement in the recipe flow when it's not necessary to do so.

Please use one of the standard processors (like PkgRootCreator) which is sufficient for creating a directory with a desired set of permissions.

@paul-cossey
Copy link
Contributor Author

I appreciate your stance, but I don't think a standard processor will have the required effect.

The problem with PathDeleter not deleting the files lies with the permissions in the unpacked vendor software. The %NAME% folder is fine, it's the contents that are not.

ChangeModeOwner does a recursive change of the permissions to get round this.

I can't really do any testing or make additional changes as the vendor has added some CloudFlare protections that require human interaction. Last time I saw this, it was removed after a few weeks. But this could be a permanent change.

Screenshot 2024-08-20 at 10 40 30

URLDownloader
URLDownloader: ERROR: (56) The requested URL returned error: 403

curl: (56) The requested URL returned error: 403

Failed.
Receipt written to /Users/paul.cossey/Library/AutoPkg/Cache/com.github.apizz.munki.FLStudio/receipts/FLStudio.munki-receipt-20240820-102618.plist

The following recipes failed:
    FLStudio.munki.recipe
        Error in com.github.apizz.munki.FLStudio: Processor: URLDownloader: Error: curl: (56) The requested URL returned error: 403

Nothing downloaded, packaged or imported.

@paul-cossey
Copy link
Contributor Author

The CloudFlare Block seems to have gone now, but, I'll close this, we're happy to have non-standard processors in our repo I've added our own recipes for FL Studio 2024: https://github.com/autopkg/dataJAR-recipes/tree/master/FL%20Studio%202024

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.

2 participants