This PR adds a sparkleEvents property to autoUpdater, which is a Stream<String> that a user can use to listen to callback events emitted by WinSparkle such as didFindUpdate or didNotFindUpdate.
On the Windows side, callbacks are registered in setFeedUrl, because currently WinSparkle is only initialized after this is called.
There might be a better way to handle the callbacks (without moving the channel pointer) but I'm no C++ expert, so this is the best solution I could come up with.
The events that can currently be emitted are:
error
shutdownRequest
didFindUpdate
didNotFindUpdate
updateCancelled
There is a different subset of events existing in the OSX implementation but these are the ones WinSparkle 0.7.0 supports.
If that's OK for you, I'd proceed with:
[this MR]
Update WinSparkle to 0.8.0
Implement the remaining events and adjusting the MacOS Swift code to match the Windows side
This PR adds a
sparkleEvents
property toautoUpdater
, which is aStream<String>
that a user can use to listen to callback events emitted by WinSparkle such asdidFindUpdate
ordidNotFindUpdate
.On the Windows side, callbacks are registered in
setFeedUrl
, because currently WinSparkle is only initialized after this is called.There might be a better way to handle the callbacks (without moving the channel pointer) but I'm no C++ expert, so this is the best solution I could come up with.
The events that can currently be emitted are:
error
shutdownRequest
didFindUpdate
didNotFindUpdate
updateCancelled
There is a different subset of events existing in the OSX implementation but these are the ones WinSparkle 0.7.0 supports.
If that's OK for you, I'd proceed with:
0.8.0