leanflutter / auto_updater

This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle).
MIT License
278 stars 38 forks source link

Not working autoupdate #41

Closed kekko7072 closed 1 year ago

kekko7072 commented 1 year ago

I have created this app to manage links and code snippets. [https://github.com/kekko7072/lms](LMS APP) I tried auto update and deployed in Firebase Hosting the 'list' directory but it's not working. When I open an old app it tells me it's already the last version despite showing the new number on the title for example:

Screenshot 2023-03-10 alle 15 13 40

Another question: when I distribute the app to be downloaded I need to Notarise the app using Xcode and so then I can give it to be downloaded, but here it doesn't seem it's necessary, why?

lijy91 commented 1 year ago

Can you try disabling the sandbox, and check the version number?

kekko7072 commented 1 year ago

I can not disable sandbox otherwise my app will not work. Can you check the code in the link of the project ?

wittDe commented 1 year ago

The sparkle:version needs to correspond to their BundleVersion and needs to be a simple integer. Fill in 1.0.0 to sparkle:shortVersionString.

kekko7072 commented 1 year ago

thanks @wittDe the sparkle:version is correct, but where should I put the tag spark: shortVersionString because on the example appcast.xml there isn't this field.

kekko7072 commented 1 year ago

@wittDe this way is correct?

<item>
            <title>Version 1.0.0</title>
            <sparkle:shortVersionString>1.0.0</sparkle:shortVersionString>
            <pubDate>Mon, 10 Mar 2023 14:00:00 +0800</pubDate>
            <enclosure url="1.0.0+8/lms-1.0.0+8-macos.zip"
                sparkle:edSignature="XXX=="
                length="60672226"
                sparkle:version="1.0.0"
                sparkle:os="macos"
                type="application/octet-stream" />
        </item>
wittDe commented 1 year ago

I think this is right, but sparkle:version should be changed to 8

You can refer to here sparkle documentation.

kekko7072 commented 1 year ago

Thanks fixed.