{"action":"created","comment":{"url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/comments/170508763","pull_request_review_id":99201483,"id":170508763,"diff_hunk":"@@ -0,0 +1,12 @@\n+#!/bin/bash\n+PREFIX=${PREFIX:-/usr/local}","path":"scripts/install-binary.sh","position":2,"original_position":2,"commit_id":"4e3cf61c14c48810c10ad04d1051ceabda6653ca","original_commit_id":"4e3cf61c14c48810c10ad04d1051ceabda6653ca","user":{"login":"yonaskolb","id":2393781,"avatar_url":"https://avatars2.githubusercontent.com/u/2393781?v=4","gravatar_id":"","url":"https://api.github.com/users/yonaskolb","html_url":"https://github.com/yonaskolb","followers_url":"https://api.github.com/users/yonaskolb/followers","following_url":"https://api.github.com/users/yonaskolb/following{/other_user}","gists_url":"https://api.github.com/users/yonaskolb/gists{/gist_id}","starred_url":"https://api.github.com/users/yonaskolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonaskolb/subscriptions","organizations_url":"https://api.github.com/users/yonaskolb/orgs","repos_url":"https://api.github.com/users/yonaskolb/repos","events_url":"https://api.github.com/users/yonaskolb/events{/privacy}","received_events_url":"https://api.github.com/users/yonaskolb/received_events","type":"User","site_admin":false},"body":"That's fine 👍 \r\nI suspect most people won't specify the path anyway.\r\nCan we also rename the script simply `install.sh`? Shorter to type and it's installing more than just a binary","created_at":"2018-02-26T07:16:25Z","updated_at":"2018-02-26T07:16:25Z","html_url":"https://github.com/yonaskolb/XcodeGen/pull/246#discussion_r170508763","pull_request_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/comments/170508763"},"html":{"href":"https://github.com/yonaskolb/XcodeGen/pull/246#discussion_r170508763"},"pull_request":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246"}},"in_reply_to_id":170504456},"pull_request":{"url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246","id":171219739,"html_url":"https://github.com/yonaskolb/XcodeGen/pull/246","diff_url":"https://github.com/yonaskolb/XcodeGen/pull/246.diff","patch_url":"https://github.com/yonaskolb/XcodeGen/pull/246.patch","issue_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/246","number":246,"state":"open","locked":false,"title":"Binary archive install","user":{"login":"toshi0383","id":6007952,"avatar_url":"https://avatars1.githubusercontent.com/u/6007952?v=4","gravatar_id":"","url":"https://api.github.com/users/toshi0383","html_url":"https://github.com/toshi0383","followers_url":"https://api.github.com/users/toshi0383/followers","following_url":"https://api.github.com/users/toshi0383/following{/other_user}","gists_url":"https://api.github.com/users/toshi0383/gists{/gist_id}","starred_url":"https://api.github.com/users/toshi0383/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toshi0383/subscriptions","organizations_url":"https://api.github.com/users/toshi0383/orgs","repos_url":"https://api.github.com/users/toshi0383/repos","events_url":"https://api.github.com/users/toshi0383/events{/privacy}","received_events_url":"https://api.github.com/users/toshi0383/received_events","type":"User","site_admin":false},"body":"Resolves https://github.com/yonaskolb/XcodeGen/issues/234 .\r\n\r\nInstalling is done in **3.81 sec** on CI. ✅\r\n\r\n# How to install binary?\r\n```\r\n# Manually download the zip\r\n# e.g. like this\r\ncurl -L https://github.com/toshi0383/XcodeGen/releases/download/1.6.1/xcodegen.zip -o a.zip\r\n\r\n# optionally compare hash value\r\n\r\nunzip a.zip\r\n./XcodeGen/install.sh\r\n```\r\n\r\nIf you want to change the `$PREFIX`,\r\n```\r\nPREFIX=/usr ./XcodeGen/install.sh\r\n```\r\n\r\n# archive.sh\r\n\r\nUse this to archive a zip file.\r\n`install.sh` is embedded inside the zip.\r\n\r\n# install-binary.sh\r\n\r\nThis script performs binary install locally from `xcodegen.zip` at current directory.\r\nThis is modified by `archive.sh` and embedded into the zipfile.\r\n\r\n# contents of zipfile\r\n```\r\nXcodeGen/\r\n├── bin\r\n│   └── xcodegen\r\n├── install.sh\r\n└── share\r\n    └── SettingPresets\r\n        ├── Configs\r\n        │   ├── debug.yml\r\n        │   └── release.yml\r\n        ├── Platforms\r\n        │   ├── iOS.yml\r\n        │   ├── macOS.yml\r\n        │   ├── tvOS.yml\r\n        │   └── watchOS.yml\r\n        ├── Product_Platform\r\n        │   ├── application_iOS.yml\r\n        │   ├── application_macOS.yml\r\n        │   ├── application_tvOS.yml\r\n        │   └── application_watchOS.yml\r\n        ├── Products\r\n        │   ├── application.watchapp2.yml\r\n        │   ├── application.yml\r\n        │   ├── bundle.ui-testing.yml\r\n        │   ├── bundle.unit-test.yml\r\n        │   ├── framework.yml\r\n        │   ├── tv-app-extension.yml\r\n        │   └── watchkit2-extension.yml\r\n        └── base.yml\r\n\r\n7 directories, 20 files\r\n```\r\n\r\n# Release Steps\r\nMaintainers need to..\r\n- `make archive` to create the zip\r\n- upload the zip to GitHub release page\r\n\r\n# Try out\r\nI uploaded the zip to my fork repo.\r\nhttps://github.com/toshi0383/XcodeGen/releases/tag/1.6.1","created_at":"2018-02-25T08:40:24Z","updated_at":"2018-02-26T07:16:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0efc8a1ff4a5217fd138fb3777b26ef7c1897d69","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246/commits","review_comments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246/comments","review_comment_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/246/comments","statuses_url":"https://api.github.com/repos/yonaskolb/XcodeGen/statuses/4e3cf61c14c48810c10ad04d1051ceabda6653ca","head":{"label":"yonaskolb:toshi0383-binary-archive-install","ref":"toshi0383-binary-archive-install","sha":"4e3cf61c14c48810c10ad04d1051ceabda6653ca","user":{"login":"yonaskolb","id":2393781,"avatar_url":"https://avatars2.githubusercontent.com/u/2393781?v=4","gravatar_id":"","url":"https://api.github.com/users/yonaskolb","html_url":"https://github.com/yonaskolb","followers_url":"https://api.github.com/users/yonaskolb/followers","following_url":"https://api.github.com/users/yonaskolb/following{/other_user}","gists_url":"https://api.github.com/users/yonaskolb/gists{/gist_id}","starred_url":"https://api.github.com/users/yonaskolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonaskolb/subscriptions","organizations_url":"https://api.github.com/users/yonaskolb/orgs","repos_url":"https://api.github.com/users/yonaskolb/repos","events_url":"https://api.github.com/users/yonaskolb/events{/privacy}","received_events_url":"https://api.github.com/users/yonaskolb/received_events","type":"User","site_admin":false},"repo":{"id":97716052,"name":"XcodeGen","full_name":"yonaskolb/XcodeGen","owner":{"login":"yonaskolb","id":2393781,"avatar_url":"https://avatars2.githubusercontent.com/u/2393781?v=4","gravatar_id":"","url":"https://api.github.com/users/yonaskolb","html_url":"https://github.com/yonaskolb","followers_url":"https://api.github.com/users/yonaskolb/followers","following_url":"https://api.github.com/users/yonaskolb/following{/other_user}","gists_url":"https://api.github.com/users/yonaskolb/gists{/gist_id}","starred_url":"https://api.github.com/users/yonaskolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonaskolb/subscriptions","organizations_url":"https://api.github.com/users/yonaskolb/orgs","repos_url":"https://api.github.com/users/yonaskolb/repos","events_url":"https://api.github.com/users/yonaskolb/events{/privacy}","received_events_url":"https://api.github.com/users/yonaskolb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yonaskolb/XcodeGen","description":"Command line tool that generates your Xcode project from a spec file and your folder structure","fork":false,"url":"https://api.github.com/repos/yonaskolb/XcodeGen","forks_url":"https://api.github.com/repos/yonaskolb/XcodeGen/forks","keys_url":"https://api.github.com/repos/yonaskolb/XcodeGen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yonaskolb/XcodeGen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yonaskolb/XcodeGen/teams","hooks_url":"https://api.github.com/repos/yonaskolb/XcodeGen/hooks","issue_events_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/events{/number}","events_url":"https://api.github.com/repos/yonaskolb/XcodeGen/events","assignees_url":"https://api.github.com/repos/yonaskolb/XcodeGen/assignees{/user}","branches_url":"https://api.github.com/repos/yonaskolb/XcodeGen/branches{/branch}","tags_url":"https://api.github.com/repos/yonaskolb/XcodeGen/tags","blobs_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/refs{/sha}","trees_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yonaskolb/XcodeGen/statuses/{sha}","languages_url":"https://api.github.com/repos/yonaskolb/XcodeGen/languages","stargazers_url":"https://api.github.com/repos/yonaskolb/XcodeGen/stargazers","contributors_url":"https://api.github.com/repos/yonaskolb/XcodeGen/contributors","subscribers_url":"https://api.github.com/repos/yonaskolb/XcodeGen/subscribers","subscription_url":"https://api.github.com/repos/yonaskolb/XcodeGen/subscription","commits_url":"https://api.github.com/repos/yonaskolb/XcodeGen/commits{/sha}","git_commits_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/commits{/sha}","comments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/comments{/number}","issue_comment_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/comments{/number}","contents_url":"https://api.github.com/repos/yonaskolb/XcodeGen/contents/{+path}","compare_url":"https://api.github.com/repos/yonaskolb/XcodeGen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yonaskolb/XcodeGen/merges","archive_url":"https://api.github.com/repos/yonaskolb/XcodeGen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yonaskolb/XcodeGen/downloads","issues_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues{/number}","pulls_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls{/number}","milestones_url":"https://api.github.com/repos/yonaskolb/XcodeGen/milestones{/number}","notifications_url":"https://api.github.com/repos/yonaskolb/XcodeGen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yonaskolb/XcodeGen/labels{/name}","releases_url":"https://api.github.com/repos/yonaskolb/XcodeGen/releases{/id}","deployments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/deployments","created_at":"2017-07-19T12:56:04Z","updated_at":"2018-02-24T20:51:56Z","pushed_at":"2018-02-26T06:14:28Z","git_url":"git://github.com/yonaskolb/XcodeGen.git","ssh_url":"git@github.com:yonaskolb/XcodeGen.git","clone_url":"https://github.com/yonaskolb/XcodeGen.git","svn_url":"https://github.com/yonaskolb/XcodeGen","homepage":"","size":3726,"stargazers_count":832,"watchers_count":832,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":46,"open_issues":34,"watchers":832,"default_branch":"master"}},"base":{"label":"yonaskolb:master","ref":"master","sha":"98c0514c43df502067f178aafe573d7297d3ff3a","user":{"login":"yonaskolb","id":2393781,"avatar_url":"https://avatars2.githubusercontent.com/u/2393781?v=4","gravatar_id":"","url":"https://api.github.com/users/yonaskolb","html_url":"https://github.com/yonaskolb","followers_url":"https://api.github.com/users/yonaskolb/followers","following_url":"https://api.github.com/users/yonaskolb/following{/other_user}","gists_url":"https://api.github.com/users/yonaskolb/gists{/gist_id}","starred_url":"https://api.github.com/users/yonaskolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonaskolb/subscriptions","organizations_url":"https://api.github.com/users/yonaskolb/orgs","repos_url":"https://api.github.com/users/yonaskolb/repos","events_url":"https://api.github.com/users/yonaskolb/events{/privacy}","received_events_url":"https://api.github.com/users/yonaskolb/received_events","type":"User","site_admin":false},"repo":{"id":97716052,"name":"XcodeGen","full_name":"yonaskolb/XcodeGen","owner":{"login":"yonaskolb","id":2393781,"avatar_url":"https://avatars2.githubusercontent.com/u/2393781?v=4","gravatar_id":"","url":"https://api.github.com/users/yonaskolb","html_url":"https://github.com/yonaskolb","followers_url":"https://api.github.com/users/yonaskolb/followers","following_url":"https://api.github.com/users/yonaskolb/following{/other_user}","gists_url":"https://api.github.com/users/yonaskolb/gists{/gist_id}","starred_url":"https://api.github.com/users/yonaskolb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yonaskolb/subscriptions","organizations_url":"https://api.github.com/users/yonaskolb/orgs","repos_url":"https://api.github.com/users/yonaskolb/repos","events_url":"https://api.github.com/users/yonaskolb/events{/privacy}","received_events_url":"https://api.github.com/users/yonaskolb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yonaskolb/XcodeGen","description":"Command line tool that generates your Xcode project from a spec file and your folder structure","fork":false,"url":"https://api.github.com/repos/yonaskolb/XcodeGen","forks_url":"https://api.github.com/repos/yonaskolb/XcodeGen/forks","keys_url":"https://api.github.com/repos/yonaskolb/XcodeGen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yonaskolb/XcodeGen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yonaskolb/XcodeGen/teams","hooks_url":"https://api.github.com/repos/yonaskolb/XcodeGen/hooks","issue_events_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/events{/number}","events_url":"https://api.github.com/repos/yonaskolb/XcodeGen/events","assignees_url":"https://api.github.com/repos/yonaskolb/XcodeGen/assignees{/user}","branches_url":"https://api.github.com/repos/yonaskolb/XcodeGen/branches{/branch}","tags_url":"https://api.github.com/repos/yonaskolb/XcodeGen/tags","blobs_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/refs{/sha}","trees_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yonaskolb/XcodeGen/statuses/{sha}","languages_url":"https://api.github.com/repos/yonaskolb/XcodeGen/languages","stargazers_url":"https://api.github.com/repos/yonaskolb/XcodeGen/stargazers","contributors_url":"https://api.github.com/repos/yonaskolb/XcodeGen/contributors","subscribers_url":"https://api.github.com/repos/yonaskolb/XcodeGen/subscribers","subscription_url":"https://api.github.com/repos/yonaskolb/XcodeGen/subscription","commits_url":"https://api.github.com/repos/yonaskolb/XcodeGen/commits{/sha}","git_commits_url":"https://api.github.com/repos/yonaskolb/XcodeGen/git/commits{/sha}","comments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/comments{/number}","issue_comment_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/comments{/number}","contents_url":"https://api.github.com/repos/yonaskolb/XcodeGen/contents/{+path}","compare_url":"https://api.github.com/repos/yonaskolb/XcodeGen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yonaskolb/XcodeGen/merges","archive_url":"https://api.github.com/repos/yonaskolb/XcodeGen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yonaskolb/XcodeGen/downloads","issues_url":"https://api.github.com/repos/yonaskolb/XcodeGen/issues{/number}","pulls_url":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls{/number}","milestones_url":"https://api.github.com/repos/yonaskolb/XcodeGen/milestones{/number}","notifications_url":"https://api.github.com/repos/yonaskolb/XcodeGen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yonaskolb/XcodeGen/labels{/name}","releases_url":"https://api.github.com/repos/yonaskolb/XcodeGen/releases{/id}","deployments_url":"https://api.github.com/repos/yonaskolb/XcodeGen/deployments","created_at":"2017-07-19T12:56:04Z","updated_at":"2018-02-24T20:51:56Z","pushed_at":"2018-02-26T06:14:28Z","git_url":"git://github.com/yonaskolb/XcodeGen.git","ssh_url":"git@github.com:yonaskolb/XcodeGen.git","clone_url":"https://github.com/yonaskolb/XcodeGen.git","svn_url":"https://github.com/yonaskolb/XcodeGen","homepage":"","size":3726,"stargazers_count":832,"watchers_count":832,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":34,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":46,"open_issues":34,"watchers":832,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246"},"html":{"href":"https://github.com/yonaskolb/XcodeGen/pull/246"},"issue":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/246"},"comments":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/issues/246/comments"},"review_comments":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246/comments"},"review_comment":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/pulls/246/commits"},"statuses":{"href":"https://api.github.com/repos/yonaskolb/XcodeGen/statuses/4e3cf61c14c48810c10ad04d1051ceabda6653ca"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"yonaskolb"}}