autopkg / gerardkok-recipes

Autopkg recipes
Apache License 2.0
11 stars 33 forks source link

ImageOptim recipe issues with .tar.xz file #241

Closed robertryansqub closed 11 months ago

robertryansqub commented 11 months ago

The ImageOptim recipe fails as the app is now being distributed as a .tar.xz file which is causing the problem below.

PkgRootCreator
PkgRootCreator: Created /Users/munki/Library/AutoPkg/Cache/local.munki.ImageOptim/ImageOptim
PkgRootCreator: Created /Users/munki/Library/AutoPkg/Cache/local.munki.ImageOptim/ImageOptim/Applications
Unarchiver
Can't guess archive format for filename ImageOptim1.9.3.tar.xz
Failed.
Receipt written to /Users/munki/Library/AutoPkg/Cache/local.munki.ImageOptim/receipts/local.munki-receipt-20231030-163140.plist

The following recipes failed:
    local.munki.ImageOptim
        Error in local.munki.ImageOptim: Processor: Unarchiver: Error: Can't guess archive format for filename ImageOptim1.9.3.tar.xz
robertryansqub commented 11 months ago

It appears that adding

<key>archive_format</key
<string>tar</string>

to the Unarchiver arguments fixes the matter. I would offer a PR but that's beyond my very limited git abilities…

gerardkok commented 11 months ago

Hey @robertryansqub, it should be fixed with @paul-cossey 's PR.