sparkle-project / Sparkle

A software update framework for macOS
https://sparkle-project.org
Other
7.44k stars 1.05k forks source link

generate_appcast Error generating appcast from directory #2603

Closed leoshatrushin closed 2 months ago

leoshatrushin commented 3 months ago

Summary

When running

➜  updates ../Sparkle-2.6.4/bin/generate_appcast .

I get the error

Error generating appcast from directory /Users/leosha/updates
 Error Domain=NSCocoaErrorDomain Code=256 "The file “updates” couldn’t be opened." UserInfo={NSFilePath=/Users/leosha/updates/, NSUnderlyingError=0x600000581380 {Error Domain=NSPOSIXErrorDomain Code=21 "Is a directory"}}

Seems it's possibly trying to open my package-containing directory as a file? Nothing of note in Console.app I think

Version

2.6.4

zorgiepoo commented 3 months ago

Weird, cannot reproduce. Does it happen if you pass /Users/leosha/updates instead of . or move the directory somewhere else.

I am guessing this is the line failing: https://github.com/sparkle-project/Sparkle/blob/2.x/generate_appcast/Unarchive.swift#L46

zorgiepoo commented 3 months ago

Also your shell may need to expand . if you otherwise have some weird setup.

leoshatrushin commented 2 months ago

I'm not sure what was wrong but it started working at some point. The dmg in the directory may have been improperly setup for sparkle.