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

Update Error with "launching the installer" on MAC #30

Closed qinidea closed 1 year ago

qinidea commented 1 year ago

d1c96cccec382893bc8dd7e5441a813

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
    <channel>
        <title>TEST</title>

        <item>
            <title>Version 1.3.1</title>
            <pubDate>Thu, 24 Dec 2020 10:51:32 +0800</pubDate>
            <enclosure url="http://...:59999/test-1.3.1+10301-macos.dmg"
                       sparkle:edSignature="yaHJS/xmcYT31y/39FCicWCDpCwxu/om6t0wdzyxV69FwZewJG70C/kEsooxSbVNdaMCRiUcvX4+FfguQBGYCg=="
                       length="34508247"

                       sparkle:version="10301"
                       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"
                       sparkle:os="windows"
                       length="0"
                       type="application/octet-stream" />
        </item>
    </channel>
</rss>

不知是dmg制作的有问题还是哪里配的不对?

lijy91 commented 1 year ago

确定一下你设置允许访问 http 的链接了没

qinidea commented 1 year ago

感谢答复~ 你是说url那里吗?应该不是它的原因,因为下载是成功了的。 如果无法下载,会报这个错: image

qinidea commented 1 year ago

看到log了,似乎是沙箱方面的问题。我再研究研究

qinidea commented 1 year ago

验证了,关闭沙箱就可以了。

thanhhuy0611 commented 1 year ago

@qinidea How can you fix it?

qinidea commented 1 year ago

@qinidea How can you fix it? Just disabled sandbox.

zxtyjx commented 1 year ago

@qinidea 你好我也遇到相同的问题,并且我在xcode中查看对应的配置也是No xcode->runner->targets-runner->build settings->Enable App Sandobx : No

你还做了哪方面修改吗?

novas1r1 commented 1 year ago

Hello, i have the same problem. "Enable App Sandbox" setting is set to no. Any other hints?

charlescyt commented 1 year ago

@zxtyjx @novas1r1 try setting the sandbox key in macos/Runner/Release.entitlements to false

<key>com.apple.security.app-sandbox</key>
<false/>
zxtyjx commented 1 year ago

@charlescyt 已经测试没问题,👍🏻