无法从松鼠服务器更新应用程序

时间:2016-08-14 05:18:37

标签: electron squirrel.windows

所以我为我的电子应用程序设置了一个松鼠服务器(https://github.com/GitbookIO/nuts)并且所有内容都已启动并运行,但是当它检查了源URL以进行更新时,它找不到它。 / p>

更新可用的事件永远不会触发。

Feed网址设置为: https://nuts.mywebsite.com/update/platform/version

我的github repo中有两个版本,第一个已安装。

我应该注意到我已经设置了github webhook,所以这不应该是一个缓存问题。我已经确认发布文件都可以通过网址手动下载。

我检查了SquirrelSetup.log文件,它似乎正在点击URL,只是没有获得更新。

  

2016-08-13 23:36:04> CheckForUpdateImpl:从https://nuts.mywebsite.com/update/win32/0.0.1-alpha下载RELEASES文件

     

2016-08-13 23:36:04> FileDownloader:正在下载网址:https://nuts.mywebsite.com/update/win32/0.0.1-alpha/RELEASES?id=MyApp&localVersion=0.0.1-alpha&arch=amd64

/ api / versions的内容:

[{
    "tag": "0.0.2-alpha",
    "channel": "alpha",
    "notes": "Testing update.",
    "published_at": "2016-08-14T07:58:34.000Z",
    "platforms": [{
        "id": "1234567",
        "type": "windows_32",
        "filename": "RELEASES",
        "size": 254,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "RELEASES",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 254,
            "download_count": 1,
            "created_at": "2016-08-14T07:54:30Z",
            "updated_at": "2016-08-14T07:57:30Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.2-alpha/RELEASES"
        }
    }, {
        "id": "1234567",
        "type": "32",
        "filename": "My.App.msi",
        "size": 71680000,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "My.App.msi",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 71680000,
            "download_count": 0,
            "created_at": "2016-08-14T07:54:30Z",
            "updated_at": "2016-08-14T07:58:32Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.2-alpha/My.App.msi"
        }
    }, {
        "id": "1234567",
        "type": "windows_32",
        "filename": "MyApp-0.0.2-alpha-delta.nupkg",
        "size": 3354516,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyApp-0.0.2-alpha-delta.nupkg",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 3354516,
            "download_count": 0,
            "created_at": "2016-08-14T07:54:30Z",
            "updated_at": "2016-08-14T07:55:32Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.2-alpha/MyApp-0.0.2-alpha-delta.nupkg"
        }
    }, {
        "id": "1234567",
        "type": "windows_32",
        "filename": "MyApp-0.0.2-alpha-full.nupkg",
        "size": 73020339,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyApp-0.0.2-alpha-full.nupkg",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 73020339,
            "download_count": 0,
            "created_at": "2016-08-14T07:54:30Z",
            "updated_at": "2016-08-14T07:56:31Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.2-alpha/MyApp-0.0.2-alpha-full.nupkg"
        }
    }, {
        "id": "1234567",
        "type": "windows_32",
        "filename": "MyApp.exe",
        "size": 72183296,
        "content_type": "application/x-msdownload",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyApp.exe",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/x-msdownload",
            "state": "uploaded",
            "size": 72183296,
            "download_count": 0,
            "created_at": "2016-08-14T07:54:30Z",
            "updated_at": "2016-08-14T07:57:29Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.2-alpha/MyApp.exe"
        }
    }]
}, {
    "tag": "0.0.1-alpha",
    "channel": "alpha",
    "notes": "Initial release for testing.",
    "published_at": "2016-08-14T07:44:25.000Z",
    "platforms": [{
        "id": "1234567",
        "type": "windows_32",
        "filename": "RELEASES",
        "size": 86,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "RELEASES",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 86,
            "download_count": 398,
            "created_at": "2016-08-14T07:40:46Z",
            "updated_at": "2016-08-14T07:43:11Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.1-alpha/RELEASES"
        }
    }, {
        "id": "1234567",
        "type": "32",
        "filename": "MyAppSetup.msi",
        "size": 71684096,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyAppSetup.msi",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 71684096,
            "download_count": 0,
            "created_at": "2016-08-14T07:40:46Z",
            "updated_at": "2016-08-14T07:41:54Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.1-alpha/MyAppSetup.msi"
        }
    }, {
        "id": "1234567",
        "type": "windows_32",
        "filename": "MyApp-0.0.1-alpha-full.nupkg",
        "size": 73019931,
        "content_type": "application/octet-stream",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyApp-0.0.1-alpha-full.nupkg",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/octet-stream",
            "state": "uploaded",
            "size": 73019931,
            "download_count": 0,
            "created_at": "2016-08-14T07:40:46Z",
            "updated_at": "2016-08-14T07:44:10Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.1-alpha/MyApp-0.0.1-alpha-full.nupkg"
        }
    }, {
        "id": "1234567",
        "type": "windows_32",
        "filename": "MyApp.exe",
        "size": 72183296,
        "content_type": "application/x-msdownload",
        "raw": {
            "url": "https://api.github.com/repos/codephobia/my-app/releases/assets/1234567",
            "id": 1234567,
            "name": "MyApp.exe",
            "label": null,
            "uploader": {
                "login": "codephobia",
                "id": 1234567,
                "avatar_url": "https://avatars.githubusercontent.com/u/1234567?v=3",
                "gravatar_id": "",
                "url": "https://api.github.com/users/codephobia",
                "html_url": "https://github.com/codephobia",
                "followers_url": "https://api.github.com/users/codephobia/followers",
                "following_url": "https://api.github.com/users/codephobia/following{/other_user}",
                "gists_url": "https://api.github.com/users/codephobia/gists{/gist_id}",
                "starred_url": "https://api.github.com/users/codephobia/starred{/owner}{/repo}",
                "subscriptions_url": "https://api.github.com/users/codephobia/subscriptions",
                "organizations_url": "https://api.github.com/users/codephobia/orgs",
                "repos_url": "https://api.github.com/users/codephobia/repos",
                "events_url": "https://api.github.com/users/codephobia/events{/privacy}",
                "received_events_url": "https://api.github.com/users/codephobia/received_events",
                "type": "User",
                "site_admin": false
            },
            "content_type": "application/x-msdownload",
            "state": "uploaded",
            "size": 72183296,
            "download_count": 0,
            "created_at": "2016-08-14T07:40:46Z",
            "updated_at": "2016-08-14T07:43:11Z",
            "browser_download_url": "https://github.com/codephobia/my-app/releases/download/v0.0.1-alpha/MyApp.exe"
        }
    }]
}]

1 个答案:

答案 0 :(得分:0)

事实证明,这只是一个简单的问题,SemVer最后有一个“-alpha”。一旦删除并重新测试,它就可以正常工作。

与问题https://github.com/GitbookIO/nuts/issues/54相关,看起来它已在拉取请求https://github.com/GitbookIO/nuts/pull/52中修补,但尚未合并。