We are going to publish our plugin to Package Control, so everyone can download and install it. To publish our plugin, we'll need to have git
installed on our system and a GitHub account. Let's first start by creating a repository for our plugin and committing all files to it by running the following commands in the plugin folder:
git init git add . git commit –m "Initial Commit"
Create a new public repository in GitHub by going to http://github.com/new and pushing our local repository there by running:
git remote add origin https://github.com/USERNAME/REPO-NAME.git git push -u origin master
In the preceding code, USERNAME
is your username and REPO-NAME
is the repository name you just created. GitHub will prompt you for the username and password.
Now for the tricky part: we'll need to select Fork on the https://github.com/wbond/package_control_channel page, as shown in the following screenshot:
After forking, we'll need to find the right file for adding our plugin to. package_control_channel/blob/master/repository/X.json
, where X
is the first letter of our plugin name. We'll edit this file and add the following code:
{ "name": "RelationsFinder", "details": "https://github.com/USERNAME/REPO-NAME", "releases": [ { "sublime_text": "*", "details": "https://github.com/USERNAME/REPO-NAME/tree/master" } ] }
Once you're done with editing, click on Commit Changes at the bottom of the page:
Now, let's create a pull request for our changes by going back to our forked repository page and clicking on the pull request button, as shown in the following screenshot:
Now all we have left to do is wait for an approval.
For complete instructions please visit https://sublime.wbond.net/docs/developers