{"action":"created","comment":{"url":"https://api.github.com/repos/cake-build/cake/pulls/comments/44218221","id":44218221,"diff_hunk":"@@ -153,6 +153,30 @@ Task(\"Zip-Files\")\n     Zip(binDir, packagePath, files);\n });\n \n+Task(\"Create-Chocolatey-Packages\")\n+    .IsDependentOn(\"Copy-Files\")\n+    .WithCriteria(() => isRunningOnWindows)\n+    .Does(() =>\n+{\n+  // Create Cake package.\n+  ChocolateyPack(\"./nuspec/Cake.Portable.nuspec\", new ChocolateyPackSettings {\n+      Version = semVersion,\n+      Files = new [] {\n+        new ChocolateyNuSpecContent {Source = string.Concat(\"./../\", binDir.Path.FullPath, \"/Cake.exe\")},","path":"build.cake","position":13,"original_position":13,"commit_id":"25a5c1638326641ce8994ece35e97252f02d65a6","original_commit_id":"25a5c1638326641ce8994ece35e97252f02d65a6","user":{"login":"patriksvensson","id":357872,"avatar_url":"https://avatars.githubusercontent.com/u/357872?v=3","gravatar_id":"","url":"https://api.github.com/users/patriksvensson","html_url":"https://github.com/patriksvensson","followers_url":"https://api.github.com/users/patriksvensson/followers","following_url":"https://api.github.com/users/patriksvensson/following{/other_user}","gists_url":"https://api.github.com/users/patriksvensson/gists{/gist_id}","starred_url":"https://api.github.com/users/patriksvensson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriksvensson/subscriptions","organizations_url":"https://api.github.com/users/patriksvensson/orgs","repos_url":"https://api.github.com/users/patriksvensson/repos","events_url":"https://api.github.com/users/patriksvensson/events{/privacy}","received_events_url":"https://api.github.com/users/patriksvensson/received_events","type":"User","site_admin":false},"body":"Maybe we can add a variable that holds the absolute path to binDir before ChocolateyPack (or make all directories absolute when specifying them)?\r\n\r\nThen we should be able to simply use something like this:\r\n\r\n```csharp\r\nnew ChocolateyNuSpecContent { Source = binDir + File(\"Cake.exe\") }\r\n```","created_at":"2015-11-07T22:50:31Z","updated_at":"2015-11-07T22:50:31Z","html_url":"https://github.com/cake-build/cake/pull/506#discussion_r44218221","pull_request_url":"https://api.github.com/repos/cake-build/cake/pulls/506","_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments/44218221"},"html":{"href":"https://github.com/cake-build/cake/pull/506#discussion_r44218221"},"pull_request":{"href":"https://api.github.com/repos/cake-build/cake/pulls/506"}}},"pull_request":{"url":"https://api.github.com/repos/cake-build/cake/pulls/506","id":50045927,"html_url":"https://github.com/cake-build/cake/pull/506","diff_url":"https://github.com/cake-build/cake/pull/506.diff","patch_url":"https://github.com/cake-build/cake/pull/506.patch","issue_url":"https://api.github.com/repos/cake-build/cake/issues/506","number":506,"state":"open","locked":false,"title":"[WIP] Create Chocolatey Package for Cake","user":{"login":"gep13","id":1271146,"avatar_url":"https://avatars.githubusercontent.com/u/1271146?v=3","gravatar_id":"","url":"https://api.github.com/users/gep13","html_url":"https://github.com/gep13","followers_url":"https://api.github.com/users/gep13/followers","following_url":"https://api.github.com/users/gep13/following{/other_user}","gists_url":"https://api.github.com/users/gep13/gists{/gist_id}","starred_url":"https://api.github.com/users/gep13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gep13/subscriptions","organizations_url":"https://api.github.com/users/gep13/orgs","repos_url":"https://api.github.com/users/gep13/repos","events_url":"https://api.github.com/users/gep13/events{/privacy}","received_events_url":"https://api.github.com/users/gep13/received_events","type":"User","site_admin":false},"body":"This is a first pass at creating the Chocolatey Package for Cake.\r\n\r\nIt isn't quite as simple to create a Chocolatey Package, as it is for a Nuget package, as there is no concept of BasePath and OutputDirectory for Chocolatey, so there is a little bit more work to do, but the end result is the same.\r\n\r\nFixes GH-505","created_at":"2015-11-07T21:37:29Z","updated_at":"2015-11-07T22:50:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80fca8f02be718dc77cd267a7b77d196af1488a3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cake-build/cake/pulls/506/commits","review_comments_url":"https://api.github.com/repos/cake-build/cake/pulls/506/comments","review_comment_url":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cake-build/cake/issues/506/comments","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/25a5c1638326641ce8994ece35e97252f02d65a6","head":{"label":"gep13:ChocolateyPackage","ref":"ChocolateyPackage","sha":"25a5c1638326641ce8994ece35e97252f02d65a6","user":{"login":"gep13","id":1271146,"avatar_url":"https://avatars.githubusercontent.com/u/1271146?v=3","gravatar_id":"","url":"https://api.github.com/users/gep13","html_url":"https://github.com/gep13","followers_url":"https://api.github.com/users/gep13/followers","following_url":"https://api.github.com/users/gep13/following{/other_user}","gists_url":"https://api.github.com/users/gep13/gists{/gist_id}","starred_url":"https://api.github.com/users/gep13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gep13/subscriptions","organizations_url":"https://api.github.com/users/gep13/orgs","repos_url":"https://api.github.com/users/gep13/repos","events_url":"https://api.github.com/users/gep13/events{/privacy}","received_events_url":"https://api.github.com/users/gep13/received_events","type":"User","site_admin":false},"repo":{"id":43681496,"name":"cake","full_name":"gep13/cake","owner":{"login":"gep13","id":1271146,"avatar_url":"https://avatars.githubusercontent.com/u/1271146?v=3","gravatar_id":"","url":"https://api.github.com/users/gep13","html_url":"https://github.com/gep13","followers_url":"https://api.github.com/users/gep13/followers","following_url":"https://api.github.com/users/gep13/following{/other_user}","gists_url":"https://api.github.com/users/gep13/gists{/gist_id}","starred_url":"https://api.github.com/users/gep13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gep13/subscriptions","organizations_url":"https://api.github.com/users/gep13/orgs","repos_url":"https://api.github.com/users/gep13/repos","events_url":"https://api.github.com/users/gep13/events{/privacy}","received_events_url":"https://api.github.com/users/gep13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gep13/cake","description":"Cake (C# Make) is a cross platform build automation system.","fork":true,"url":"https://api.github.com/repos/gep13/cake","forks_url":"https://api.github.com/repos/gep13/cake/forks","keys_url":"https://api.github.com/repos/gep13/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gep13/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gep13/cake/teams","hooks_url":"https://api.github.com/repos/gep13/cake/hooks","issue_events_url":"https://api.github.com/repos/gep13/cake/issues/events{/number}","events_url":"https://api.github.com/repos/gep13/cake/events","assignees_url":"https://api.github.com/repos/gep13/cake/assignees{/user}","branches_url":"https://api.github.com/repos/gep13/cake/branches{/branch}","tags_url":"https://api.github.com/repos/gep13/cake/tags","blobs_url":"https://api.github.com/repos/gep13/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gep13/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gep13/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/gep13/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gep13/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/gep13/cake/languages","stargazers_url":"https://api.github.com/repos/gep13/cake/stargazers","contributors_url":"https://api.github.com/repos/gep13/cake/contributors","subscribers_url":"https://api.github.com/repos/gep13/cake/subscribers","subscription_url":"https://api.github.com/repos/gep13/cake/subscription","commits_url":"https://api.github.com/repos/gep13/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/gep13/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/gep13/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/gep13/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/gep13/cake/contents/{+path}","compare_url":"https://api.github.com/repos/gep13/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gep13/cake/merges","archive_url":"https://api.github.com/repos/gep13/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gep13/cake/downloads","issues_url":"https://api.github.com/repos/gep13/cake/issues{/number}","pulls_url":"https://api.github.com/repos/gep13/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/gep13/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/gep13/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gep13/cake/labels{/name}","releases_url":"https://api.github.com/repos/gep13/cake/releases{/id}","created_at":"2015-10-05T11:56:38Z","updated_at":"2015-10-05T11:56:40Z","pushed_at":"2015-11-07T21:36:12Z","git_url":"git://github.com/gep13/cake.git","ssh_url":"git@github.com:gep13/cake.git","clone_url":"https://github.com/gep13/cake.git","svn_url":"https://github.com/gep13/cake","homepage":"http://cakebuild.net/","size":3553,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"cake-build:develop","ref":"develop","sha":"8e726f8fb514fea1978395f6738fdd91249e0dad","user":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"repo":{"id":20094029,"name":"cake","full_name":"cake-build/cake","owner":{"login":"cake-build","id":7738262,"avatar_url":"https://avatars.githubusercontent.com/u/7738262?v=3","gravatar_id":"","url":"https://api.github.com/users/cake-build","html_url":"https://github.com/cake-build","followers_url":"https://api.github.com/users/cake-build/followers","following_url":"https://api.github.com/users/cake-build/following{/other_user}","gists_url":"https://api.github.com/users/cake-build/gists{/gist_id}","starred_url":"https://api.github.com/users/cake-build/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cake-build/subscriptions","organizations_url":"https://api.github.com/users/cake-build/orgs","repos_url":"https://api.github.com/users/cake-build/repos","events_url":"https://api.github.com/users/cake-build/events{/privacy}","received_events_url":"https://api.github.com/users/cake-build/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cake-build/cake","description":"Cake (C# Make) is a cross platform build automation system.","fork":false,"url":"https://api.github.com/repos/cake-build/cake","forks_url":"https://api.github.com/repos/cake-build/cake/forks","keys_url":"https://api.github.com/repos/cake-build/cake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cake-build/cake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cake-build/cake/teams","hooks_url":"https://api.github.com/repos/cake-build/cake/hooks","issue_events_url":"https://api.github.com/repos/cake-build/cake/issues/events{/number}","events_url":"https://api.github.com/repos/cake-build/cake/events","assignees_url":"https://api.github.com/repos/cake-build/cake/assignees{/user}","branches_url":"https://api.github.com/repos/cake-build/cake/branches{/branch}","tags_url":"https://api.github.com/repos/cake-build/cake/tags","blobs_url":"https://api.github.com/repos/cake-build/cake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cake-build/cake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cake-build/cake/git/refs{/sha}","trees_url":"https://api.github.com/repos/cake-build/cake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cake-build/cake/statuses/{sha}","languages_url":"https://api.github.com/repos/cake-build/cake/languages","stargazers_url":"https://api.github.com/repos/cake-build/cake/stargazers","contributors_url":"https://api.github.com/repos/cake-build/cake/contributors","subscribers_url":"https://api.github.com/repos/cake-build/cake/subscribers","subscription_url":"https://api.github.com/repos/cake-build/cake/subscription","commits_url":"https://api.github.com/repos/cake-build/cake/commits{/sha}","git_commits_url":"https://api.github.com/repos/cake-build/cake/git/commits{/sha}","comments_url":"https://api.github.com/repos/cake-build/cake/comments{/number}","issue_comment_url":"https://api.github.com/repos/cake-build/cake/issues/comments{/number}","contents_url":"https://api.github.com/repos/cake-build/cake/contents/{+path}","compare_url":"https://api.github.com/repos/cake-build/cake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cake-build/cake/merges","archive_url":"https://api.github.com/repos/cake-build/cake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cake-build/cake/downloads","issues_url":"https://api.github.com/repos/cake-build/cake/issues{/number}","pulls_url":"https://api.github.com/repos/cake-build/cake/pulls{/number}","milestones_url":"https://api.github.com/repos/cake-build/cake/milestones{/number}","notifications_url":"https://api.github.com/repos/cake-build/cake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cake-build/cake/labels{/name}","releases_url":"https://api.github.com/repos/cake-build/cake/releases{/id}","created_at":"2014-05-23T09:26:54Z","updated_at":"2015-11-07T22:35:47Z","pushed_at":"2015-11-07T21:37:31Z","git_url":"git://github.com/cake-build/cake.git","ssh_url":"git@github.com:cake-build/cake.git","clone_url":"https://github.com/cake-build/cake.git","svn_url":"https://github.com/cake-build/cake","homepage":"http://cakebuild.net/","size":7210,"stargazers_count":311,"watchers_count":311,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":67,"mirror_url":null,"open_issues_count":87,"forks":67,"open_issues":87,"watchers":311,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cake-build/cake/pulls/506"},"html":{"href":"https://github.com/cake-build/cake/pull/506"},"issue":{"href":"https://api.github.com/repos/cake-build/cake/issues/506"},"comments":{"href":"https://api.github.com/repos/cake-build/cake/issues/506/comments"},"review_comments":{"href":"https://api.github.com/repos/cake-build/cake/pulls/506/comments"},"review_comment":{"href":"https://api.github.com/repos/cake-build/cake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cake-build/cake/pulls/506/commits"},"statuses":{"href":"https://api.github.com/repos/cake-build/cake/statuses/25a5c1638326641ce8994ece35e97252f02d65a6"}}}}