Skip to content
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

【Windows】Update Error! search update info error,Please confirm your network is ok? please try again #61

Open
iOSBoy opened this issue Apr 17, 2024 · 2 comments

Comments

@iOSBoy
Copy link

iOSBoy commented Apr 17, 2024

  1. main.dart
      String feedURL = 'http://xxxx.com/appcast.xml'; //replace my url
      await autoUpdater.setFeedURL(feedURL);
      await autoUpdater.checkForUpdates();
      await autoUpdater.setScheduledCheckInterval(3600);
  1. dsa_priv.pen & dsa_pub.pem is ok

  2. Runner.rc

/////////////////////////////////////////////////////////////////////////////
//
// WinSparkle
//

// And verify signature using DSA public key:
DSAPub      DSAPEM      "../../dsa_pub.pem"

5.appcast.xml

        <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="https://static.aaa.aa.hat/2.5.15/aaaa_pro.exe"
                sparkle:dsaSignature="MDwCHF9qghqq+sDibyEk6PPB3Fd8Kdw**********************R5gfE08ed4zTQ="
                sparkle:version="1.1.0+2"
                sparkle:os="windows"
                length="0"
                type="application/octet-stream" />
        </item>
@wangdenkun
Copy link

see https://github.com/vslavik/winsparkle/wiki/Appcast-Feeds
change the url to be a full link
that`s work for me

@GolnazMirzaie
Copy link

GolnazMirzaie commented Jun 6, 2024

@wangdenkun I get this error on windows, this is my appcast file for second update:

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
    <channel>
        <title>app update</title>
<description>Most recent updates to app</description>
<language>en</language>
<item>
<title>Version 1.0.2</title>
<pubDate>Wed, 6 June 2024 10:28:00 +0800</pubDate>
<enclosure url="......./app-1.0.2%2B1-windows-setup.exe" sparkle:dsaSignature="MD0CHQCRaSvL.................rUnT9d/0LKk/8b0qR5fUHsLp" sparkle:version="1.0.2+1" sparkle:os="windows" length="0" type="application/octet-stream"/>
</item>
    </channel>
</rss>

when I open the app it detects that a newer version exists, but when I click on install update, after a few seconds of downloading updates, it says:

Annotation 2024-06-06 122534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants