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
No popup when running the latest version? #1326
Comments
Is your application running a Cocoa Without the runloop all our async code may be subtly broken and events get queued to |
Our
AFAIK,
Why "Check for Updates..." always works if there is a new version? |
This is a bit puzzling. Do you get alerts when there's an error? (e.g. try making invalid XML in the appcast) |
Yes:
|
The logs is pretty the same when there is a new version:
except that there is no pop up. |
Compile your copy of Sparkle. In Sparkle's code, look for calls |
I've taken a look at all below files. Looks like these are used for doing something after the popup dialog appear: download, extract, delta update, ... Where is the code that show the popup dialog?
|
I asked my co-worker to test on 10.14 and I saw something in the logs:
Why
non-fatal error but does it relate to this problem? |
We don't use plugins, so it's expected that this doesn't exist. I'm not sure why macOS is even trying to access it. |
OK. I found this: https://github.com/sparkle-project/Sparkle/blob/master/Sparkle/SUUIBasedUpdateDriver.m#L104 |
I added some logs:
run |
Were you using an older version of Sparkle before? We've switched our network back-end couple of versions ago. The new backend, like the alerts, doesn't work without a I don't know how Qt is integrated, but I wouldn't be surprised if it had its own event loop, instead of running "competitor's" event loop. It's also important for Cocoa to have "main thread" which is the same as the thread of Try moving your program to a thread, and block |
No, I just started using version 1.21.0 some days ago.
Maybe that's the reason, as I saw in the source code, Sparkle/Sparkle/SUUIBasedUpdateDriver.m Line 91 in d430c33
I think so: https://wiki.qt.io/Threads_Events_QObjects#Events_and_the_event_loop
I found something:
https://developer.apple.com/documentation/appkit/nsapplication
but the thing is I don't know how can I call Go's main function from within |
Yes, if you could run By default it also wants to launch Cocoa GUI. I never tried not having one, but maybe if you don't have the main nib file, it won't be a problem? or you could try Because Cocoa wants to have the main thread for itself, you need to spawn rest of your app on another thread. That may do it:
|
I'm trying to use Sparkle with Qt (binding for Go) app.
sparkle.m:
sparke.go:
main.go:
It is working fine when there is an update: download, extract, install, relaunch, ...
But when running the latest version, click "Check for Updates..." menu and nothing happens. There is no popup said that we are up-to-date, something like this:
In Console, I only see this:
appcast.xml:
Did I miss something?
The text was updated successfully, but these errors were encountered: