无法从松鼠坚果服务器更新应用程序
Unable to update app from squirrel nuts server
所以我为我的电子应用程序设置了一个松鼠坚果服务器 (https://github.com/GitbookIO/nuts),一切正常 运行,但是当它检查 feed url 更新时,它没有找到它。
更新可用事件永远不会触发。
Feed url 设置为:
https://nuts.mywebsite.com/update/platform/version
我的 github 存储库中有两个版本,第一个已安装。
我应该注意到我已经设置了 github webhook,所以这不应该是缓存问题。我已经确认发布文件都可以通过 url 手动下载。
我检查了 SquirrelSetup.log 文件,它似乎正在点击 URL,只是没有得到更新。
2016-08-13 23:36:04> CheckForUpdateImpl: Downloading RELEASES file from https://nuts.mywebsite.com/update/win32/0.0.1-alpha
2016-08-13 23:36:04> FileDownloader: Downloading url: 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"
}
}]
}]
事实证明,这只是 SemVer 末尾带有“-alpha”的一个简单问题。删除它并重新测试后,它工作正常。
与问题 https://github.com/GitbookIO/nuts/issues/54 which looks like it has been patched in a pull request https://github.com/GitbookIO/nuts/pull/52 相关,但尚未合并。
所以我为我的电子应用程序设置了一个松鼠坚果服务器 (https://github.com/GitbookIO/nuts),一切正常 运行,但是当它检查 feed url 更新时,它没有找到它。
更新可用事件永远不会触发。
Feed url 设置为: https://nuts.mywebsite.com/update/platform/version
我的 github 存储库中有两个版本,第一个已安装。
我应该注意到我已经设置了 github webhook,所以这不应该是缓存问题。我已经确认发布文件都可以通过 url 手动下载。
我检查了 SquirrelSetup.log 文件,它似乎正在点击 URL,只是没有得到更新。
2016-08-13 23:36:04> CheckForUpdateImpl: Downloading RELEASES file from https://nuts.mywebsite.com/update/win32/0.0.1-alpha
2016-08-13 23:36:04> FileDownloader: Downloading url: 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"
}
}]
}]
事实证明,这只是 SemVer 末尾带有“-alpha”的一个简单问题。删除它并重新测试后,它工作正常。
与问题 https://github.com/GitbookIO/nuts/issues/54 which looks like it has been patched in a pull request https://github.com/GitbookIO/nuts/pull/52 相关,但尚未合并。