autopkg / kevinmcox-recipes

Recipes for use with AutoPkg.
Apache License 2.0
4 stars 2 forks source link

DFU Blaster #7

Closed paul-cossey closed 3 months ago

paul-cossey commented 3 months ago

Hey, @kevinmcox

We're seeing an error when using this recipe with the Virus Total post processor.

Processor: io.github.hjuutilainen.VirusTotalAnalyzer/VirusTotalAnalyzer: Error: [Errno 2] No such file or directory: '/Users/sadmin/Library/AutoPkg/Cache/local.definition.DFUBlaster/downloads/PreBeta-DFU_Blaster_Build-2112_Version-2.2.dmg'

The Virus Total processor uploads %pathname% which has been moved: https://github.com/autopkg/kevinmcox-recipes/blob/master/Twocanoes%20Software/DFUBlaster.munki.recipe#L114#L124

Is this step needed? If you need the dmg in a specific location, would Copier work for you?

Thanks!

kevinmcox commented 3 months ago

@paul-cossey let me take a look and see if I can remember what I was doing last year.

kevinmcox commented 3 months ago

@paul-cossey Ah I remember now. The downloaded file is named PreBeta-DFU_Blaster_Build-2112_Version-2.2.dmg so I'm using FileMover to rename the DMG to something more succinct in DFU_Blaster.dmg before importing it into Munki.

paul-cossey commented 3 months ago

Gotcha, so instead of FileMover you could add filename to URLDownloader and achieve the same result?

<dict>
    <key>Arguments</key>
    <dict>
        <key>filename</key>
        <string>%NAME%.dmg</string>
        <key>url</key>
        <string>https://bitbucket.org%match%</string>
    </dict>
    <key>Processor</key>
    <string>URLDownloader</string>
</dict>
kevinmcox commented 3 months ago

Yep, great solution. Give me a few minutes to fix things up.

paul-cossey commented 3 months ago

Awesome! Thank you! 😄