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

Error updating in windows. #42

Closed kekko7072 closed 1 year ago

kekko7072 commented 1 year ago

Hy i have this opensource app :https://github.com/kekko7072/lms. I have configured everything and fixed macOS update, but when I try windows it doesn't update it return an error while updating.

I have all configured and signed (you can see the sign firm on the opensource project).

What is wrong? It return the error that it's not connected to internet, but the device it is.

sgehrman commented 1 year ago

I was using sparkle:edSignature for windows, it should be sparkle:dsaSignature

lijy91 commented 1 year ago

Please update to 0.1.7 and add sparkle:version to appcast.xml.

Please note that on windows platform, version needs to include buildnumber, such as 1.0.1+2.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
    <channel>
        <title>auto_updater_example</title>
        <description>Most recent updates to auto_updater_example</description>
        <language>en</language>
        <item>
            <title>Version 1.1.0</title>
            <sparkle:releaseNotesLink>
                https://your_domain/your_path/release_notes.html
            </sparkle:releaseNotesLink>
            <pubDate>Sun, 16 Feb 2022 12:00:00 +0800</pubDate>
            <enclosure url="1.1.0+2/auto_updater_example-1.1.0+2-macos.zip"
                sparkle:edSignature="ZVt1VMR6aqa6mgNbi+0PTsIKwLV6aMIQVTxVAlxz2+5/r20vywfzeJog0zG+SxtcYe7vwmaBD6vbXmdzcjS5Bg=="
                length="18975248"
                sparkle:version="1.1.0"
                sparkle:os="macos"
                type="application/octet-stream" />
        </item>
        <item>
            <title>Version 1.1.0</title>
            <sparkle:releaseNotesLink>
                https://your_domain/your_path/release_notes.html
            </sparkle:releaseNotesLink>
            <pubDate>Sun, 16 Feb 2022 12:00:00 +0800</pubDate>
            <enclosure url="1.1.0+2/auto_updater_example-1.1.0+2-windows.exe"
                       sparkle:dsaSignature="MEUCIQCVbVzVID7H3aUzAY5znpi+ySZKznkukV8whlMFzKh66AIgREUGOmvavlcg6hwAwkb2o4IqVE/D56ipIBshIqCH8rk="
                       sparkle:version="1.1.0+2"
                       sparkle:os="windows"
                       length="0"
                       type="application/octet-stream" />
        </item>
    </channel>
</rss>
kekko7072 commented 1 year ago

@lijy91 sorry but i'm still facing the issue. I'm not able to let user windows update.

GolnazMirzaie commented 3 months ago

@kekko7072 have you found any solution to fix the issue? I'm facing the same problem too

kekko7072 commented 3 months ago

@kekko7072 have you found any solution to fix the issue? I'm facing the same problem too

Unfortunately no.