{"action":"created","comment":{"url":"https://api.github.com/repos/electron/electron/pulls/comments/165230133","pull_request_review_id":93132463,"id":165230133,"diff_hunk":"@@ -0,0 +1,181 @@\n+# Snapcraft Guide (Ubuntu Software Center & More)\n+\n+This guide provides information on how to package your Electron application\n+for the Ubuntu Software Center or any other Snapcraft environment.\n+\n+## Background and Requirements\n+\n+Together with the broader Linux community, Canonical aims to fix many of the\n+common software installation problems with the [`snapcraft`](snapcraft.io)\n+project. Snaps are containerized software packages that include required\n+dependencies, auto-update, and work on all major Linux distributions without\n+system modification.\n+\n+Snapcraft is the primary way to get your application into the Ubuntu Software\n+Center, but the underlying [Snap Store](snapcraft-store) supports all major\n+Linux distributions, too.\n+\n+There are two ways to create a `.snap` file:\n+\n+1) Using `electron-installer-snap`, which takes `electron-packager's` output\n+2) Using an already created `.deb` package\n+3) Using [`electron-forge`](electron-forge) or\n+   [`electron-builder`](electron-builder), both tools that come with `snap`\n+   support out of the box (not further documented here, please see those\n+   frameworks for further guidance)\n+\n+In both cases, you will need to have the `snapcraft` tool installed. We\n+recommend building on Ubuntu 16.04 (or the current LTS).\n+\n+```sh\n+snap install snapcraft --classic\n+```\n+\n+While it _is possible_ to install `snapcraft` on macOS using Homebrew, you are\n+less likely to encounter issues when running `snapcraft` on an actual Linux\n+distribution.\n+\n+# Using `electron-installer-snap`\n+\n+The module works like `electron-winstaller` and similar modules in that its\n+scope is limited to building snap packages. You can install it with:\n+\n+```sh\n+npm install --save-dev electron-installer-snap\n+```\n+\n+## Step 1: Package Your Electron Application\n+\n+Package the application using [electron-packager][electron-packager] (or a\n+similar tool). Make sure to remove `node_modules` that you don't need in your\n+final application, since any module you don't actually need will just increase\n+your application's size.\n+\n+The output should look roughly like this:\n+\n+```text\n+├── Ghost.exe\n+├── LICENSE\n+├── content_resources_200_percent.pak\n+├── content_shell.pak\n+├── d3dcompiler_47.dll\n+├── ffmpeg.dll\n+├── icudtl.dat\n+├── libEGL.dll\n+├── libGLESv2.dll\n+├── locales\n+│   ├── am.pak\n+│   ├── ar.pak\n+│   ├── [...]\n+├── natives_blob.bin\n+├── node.dll\n+├── resources\n+│   ├── app\n+│   └── atom.asar\n+├── snapshot_blob.bin\n+├── squirrel.exe\n+└── ui_resources_200_percent.pak\n+```\n+\n+## Step 2: Running electron-installer-snap\n+\n+From a terminal that has `snapcraft` in its `PATH`, run `electron-installer-snap`\n+with the only required parameter `--out`, which is the location of your packaged","path":"docs/tutorial/snapcraft-guide.md","position":83,"original_position":83,"commit_id":"b49a284ccfd84014cfb5496008b744698e86f911","original_commit_id":"b49a284ccfd84014cfb5496008b744698e86f911","user":{"login":"evandandrea","id":1523179,"avatar_url":"https://avatars3.githubusercontent.com/u/1523179?v=4","gravatar_id":"","url":"https://api.github.com/users/evandandrea","html_url":"https://github.com/evandandrea","followers_url":"https://api.github.com/users/evandandrea/followers","following_url":"https://api.github.com/users/evandandrea/following{/other_user}","gists_url":"https://api.github.com/users/evandandrea/gists{/gist_id}","starred_url":"https://api.github.com/users/evandandrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evandandrea/subscriptions","organizations_url":"https://api.github.com/users/evandandrea/orgs","repos_url":"https://api.github.com/users/evandandrea/repos","events_url":"https://api.github.com/users/evandandrea/events{/privacy}","received_events_url":"https://api.github.com/users/evandandrea/received_events","type":"User","site_admin":false},"body":"the only required parameter `--src`?","created_at":"2018-02-01T00:31:43Z","updated_at":"2018-02-01T00:34:43Z","html_url":"https://github.com/electron/electron/pull/11794#discussion_r165230133","pull_request_url":"https://api.github.com/repos/electron/electron/pulls/11794","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/electron/electron/pulls/comments/165230133"},"html":{"href":"https://github.com/electron/electron/pull/11794#discussion_r165230133"},"pull_request":{"href":"https://api.github.com/repos/electron/electron/pulls/11794"}}},"pull_request":{"url":"https://api.github.com/repos/electron/electron/pulls/11794","id":166410161,"html_url":"https://github.com/electron/electron/pull/11794","diff_url":"https://github.com/electron/electron/pull/11794.diff","patch_url":"https://github.com/electron/electron/pull/11794.patch","issue_url":"https://api.github.com/repos/electron/electron/issues/11794","number":11794,"state":"open","locked":false,"title":"Add snapcraft documentation","user":{"login":"felixrieseberg","id":1426799,"avatar_url":"https://avatars3.githubusercontent.com/u/1426799?v=4","gravatar_id":"","url":"https://api.github.com/users/felixrieseberg","html_url":"https://github.com/felixrieseberg","followers_url":"https://api.github.com/users/felixrieseberg/followers","following_url":"https://api.github.com/users/felixrieseberg/following{/other_user}","gists_url":"https://api.github.com/users/felixrieseberg/gists{/gist_id}","starred_url":"https://api.github.com/users/felixrieseberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixrieseberg/subscriptions","organizations_url":"https://api.github.com/users/felixrieseberg/orgs","repos_url":"https://api.github.com/users/felixrieseberg/repos","events_url":"https://api.github.com/users/felixrieseberg/events{/privacy}","received_events_url":"https://api.github.com/users/felixrieseberg/received_events","type":"User","site_admin":false},"body":"👋 I'm coming live to you from Canonical's Snapcraft summit, where some of us (Visual Studio Code, Slack, Skype, electron-forge, electron-builder, etc) have been playing with `snapcraft` technology.\r\n\r\nYou shouldn't need a summit to play with it, so hence some solid documentation - in line with our Windows Store and Mac App Store documentation.","created_at":"2018-02-01T00:01:46Z","updated_at":"2018-02-01T00:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a13fbefa437a97efc5349c88513ddb33447d91b9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[{"name":"docs","id":2490622,"slug":"docs","description":"Docs Reviewers","privacy":"closed","url":"https://api.github.com/teams/2490622","members_url":"https://api.github.com/teams/2490622/members{/member}","repositories_url":"https://api.github.com/teams/2490622/repos","permission":"pull"}],"milestone":null,"commits_url":"https://api.github.com/repos/electron/electron/pulls/11794/commits","review_comments_url":"https://api.github.com/repos/electron/electron/pulls/11794/comments","review_comment_url":"https://api.github.com/repos/electron/electron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/electron/electron/issues/11794/comments","statuses_url":"https://api.github.com/repos/electron/electron/statuses/b49a284ccfd84014cfb5496008b744698e86f911","head":{"label":"electron:snapcraft-documentation","ref":"snapcraft-documentation","sha":"b49a284ccfd84014cfb5496008b744698e86f911","user":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":9384267,"name":"electron","full_name":"electron/electron","owner":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/electron","description":"Build cross platform desktop apps with JavaScript, HTML, and CSS","fork":false,"url":"https://api.github.com/repos/electron/electron","forks_url":"https://api.github.com/repos/electron/electron/forks","keys_url":"https://api.github.com/repos/electron/electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/electron/teams","hooks_url":"https://api.github.com/repos/electron/electron/hooks","issue_events_url":"https://api.github.com/repos/electron/electron/issues/events{/number}","events_url":"https://api.github.com/repos/electron/electron/events","assignees_url":"https://api.github.com/repos/electron/electron/assignees{/user}","branches_url":"https://api.github.com/repos/electron/electron/branches{/branch}","tags_url":"https://api.github.com/repos/electron/electron/tags","blobs_url":"https://api.github.com/repos/electron/electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/electron/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/electron/languages","stargazers_url":"https://api.github.com/repos/electron/electron/stargazers","contributors_url":"https://api.github.com/repos/electron/electron/contributors","subscribers_url":"https://api.github.com/repos/electron/electron/subscribers","subscription_url":"https://api.github.com/repos/electron/electron/subscription","commits_url":"https://api.github.com/repos/electron/electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/electron/contents/{+path}","compare_url":"https://api.github.com/repos/electron/electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/electron/merges","archive_url":"https://api.github.com/repos/electron/electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/electron/downloads","issues_url":"https://api.github.com/repos/electron/electron/issues{/number}","pulls_url":"https://api.github.com/repos/electron/electron/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/electron/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/electron/labels{/name}","releases_url":"https://api.github.com/repos/electron/electron/releases{/id}","deployments_url":"https://api.github.com/repos/electron/electron/deployments","created_at":"2013-04-12T01:47:36Z","updated_at":"2018-01-31T22:27:24Z","pushed_at":"2018-02-01T00:17:27Z","git_url":"git://github.com/electron/electron.git","ssh_url":"git@github.com:electron/electron.git","clone_url":"https://github.com/electron/electron.git","svn_url":"https://github.com/electron/electron","homepage":"https://electronjs.org","size":35134,"stargazers_count":56036,"watchers_count":56036,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7274,"mirror_url":null,"archived":false,"open_issues_count":871,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7274,"open_issues":871,"watchers":56036,"default_branch":"master"}},"base":{"label":"electron:master","ref":"master","sha":"278c58055ed36f6f22cea05a9cd85a5ab4fb3010","user":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"repo":{"id":9384267,"name":"electron","full_name":"electron/electron","owner":{"login":"electron","id":13409222,"avatar_url":"https://avatars1.githubusercontent.com/u/13409222?v=4","gravatar_id":"","url":"https://api.github.com/users/electron","html_url":"https://github.com/electron","followers_url":"https://api.github.com/users/electron/followers","following_url":"https://api.github.com/users/electron/following{/other_user}","gists_url":"https://api.github.com/users/electron/gists{/gist_id}","starred_url":"https://api.github.com/users/electron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electron/subscriptions","organizations_url":"https://api.github.com/users/electron/orgs","repos_url":"https://api.github.com/users/electron/repos","events_url":"https://api.github.com/users/electron/events{/privacy}","received_events_url":"https://api.github.com/users/electron/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/electron/electron","description":"Build cross platform desktop apps with JavaScript, HTML, and CSS","fork":false,"url":"https://api.github.com/repos/electron/electron","forks_url":"https://api.github.com/repos/electron/electron/forks","keys_url":"https://api.github.com/repos/electron/electron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/electron/electron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/electron/electron/teams","hooks_url":"https://api.github.com/repos/electron/electron/hooks","issue_events_url":"https://api.github.com/repos/electron/electron/issues/events{/number}","events_url":"https://api.github.com/repos/electron/electron/events","assignees_url":"https://api.github.com/repos/electron/electron/assignees{/user}","branches_url":"https://api.github.com/repos/electron/electron/branches{/branch}","tags_url":"https://api.github.com/repos/electron/electron/tags","blobs_url":"https://api.github.com/repos/electron/electron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/electron/electron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/electron/electron/git/refs{/sha}","trees_url":"https://api.github.com/repos/electron/electron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/electron/electron/statuses/{sha}","languages_url":"https://api.github.com/repos/electron/electron/languages","stargazers_url":"https://api.github.com/repos/electron/electron/stargazers","contributors_url":"https://api.github.com/repos/electron/electron/contributors","subscribers_url":"https://api.github.com/repos/electron/electron/subscribers","subscription_url":"https://api.github.com/repos/electron/electron/subscription","commits_url":"https://api.github.com/repos/electron/electron/commits{/sha}","git_commits_url":"https://api.github.com/repos/electron/electron/git/commits{/sha}","comments_url":"https://api.github.com/repos/electron/electron/comments{/number}","issue_comment_url":"https://api.github.com/repos/electron/electron/issues/comments{/number}","contents_url":"https://api.github.com/repos/electron/electron/contents/{+path}","compare_url":"https://api.github.com/repos/electron/electron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/electron/electron/merges","archive_url":"https://api.github.com/repos/electron/electron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/electron/electron/downloads","issues_url":"https://api.github.com/repos/electron/electron/issues{/number}","pulls_url":"https://api.github.com/repos/electron/electron/pulls{/number}","milestones_url":"https://api.github.com/repos/electron/electron/milestones{/number}","notifications_url":"https://api.github.com/repos/electron/electron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/electron/electron/labels{/name}","releases_url":"https://api.github.com/repos/electron/electron/releases{/id}","deployments_url":"https://api.github.com/repos/electron/electron/deployments","created_at":"2013-04-12T01:47:36Z","updated_at":"2018-01-31T22:27:24Z","pushed_at":"2018-02-01T00:17:27Z","git_url":"git://github.com/electron/electron.git","ssh_url":"git@github.com:electron/electron.git","clone_url":"https://github.com/electron/electron.git","svn_url":"https://github.com/electron/electron","homepage":"https://electronjs.org","size":35134,"stargazers_count":56036,"watchers_count":56036,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7274,"mirror_url":null,"archived":false,"open_issues_count":871,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":7274,"open_issues":871,"watchers":56036,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/electron/electron/pulls/11794"},"html":{"href":"https://github.com/electron/electron/pull/11794"},"issue":{"href":"https://api.github.com/repos/electron/electron/issues/11794"},"comments":{"href":"https://api.github.com/repos/electron/electron/issues/11794/comments"},"review_comments":{"href":"https://api.github.com/repos/electron/electron/pulls/11794/comments"},"review_comment":{"href":"https://api.github.com/repos/electron/electron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/electron/electron/pulls/11794/commits"},"statuses":{"href":"https://api.github.com/repos/electron/electron/statuses/b49a284ccfd84014cfb5496008b744698e86f911"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"evandandrea"}}