Github For Windows and Your Own Repo Easy As 123

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
Using Mikey1234's excellent instructions for "Your Own Repo Easy As 123" for Dropbox, i thought i should make one for Github. It requires more steps than Dropbox, but Github does not disable your account for heavy traffic. Please follow instructions and i will be available for any questions and support.
Thank you and GOOD LUCK!!!!
 
Last edited:

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
Step 1: Create a Github account if you haven't yet.

Step 2: Create your repo in your Github account.

Step 3: Download and install Github for Windows.

Step 4: Open Github for windows and enter username and password.
Enter Full name and Email. Skip local repositories if you dont have any.

Step 5: On the left side under github click on your username, on the right side your repository will show up.
Right click on it and click clone.



Step 6: Back to the left side under local click on repositories, on the right side your cloned repository will appear.
Right click on it and click open in explorer.



Step 7: Now its time to setup your repo, what you need to do is download this zip
and extract it in your Repo folder in your explorer
so your directory will look like this Documents\GitHub\My-Repo\
there is a readme.txt included follow instructions carefully
obviously you will need to do simple editing of some files which is all in the readme

Step 8: After completing the Instructions from the read me file, you must commit in order to push your changes
to Github, to do that under repositories click on the blue arrow on the right of your cloned repository.
Once repository is open you will find a yellow box to the right, fill in commit message (example "added repo") click commit then the blue sync at the very top.



Step 9: Provide your zipped Repo file for download, located here "https://github.com/CHANGEME/My-Repo/tree/master/zips" but to get the proper link you need, click on the zipped repo (repository.yourrepo.-1.0.zip) in the Github website. Then on the right side right click on raw and copy link location.

 
Last edited:

Bstrdsmkr

New member
Mar 16, 2012
763
0
0
The zips provided by github won't be named correctly. They'll end up something like /xbmc/addons/plugin.video.1Ch**nel-master/

Instead, zip up the addon when it's ready for release and commit that, then provide the link to it

Also, in step 8 you have to sync after commiting.

Good work.
 

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
The zips provided by github won't be named correctly. They'll end up something like /xbmc/addons/plugin.video.1Ch**nel-master/

Instead, zip up the addon when it's ready for release and commit that, then provide the link to it

Also, in step 8 you have to sync after commiting.

Good work.
thanks Bstrdsmkr

i knew i was missing something

edit:

hey Bstrdsmkr
is step 9 good now, for providing repo download link.
 
Last edited:

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
To me, step 7 before you get to the read me isn't very clear at all because everyone will have different folder structures.

So we've just opened the repo in explorer yes? then are we unpacking that zip into there? So for me it will be github/vinnydude.repo/my-repo? Or is it github/my-repo? or is my-repo vinnydude.repo?
 

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
To me, step 7 before you get to the read me isn't very clear at all because everyone will have different folder structures.

So we've just opened the repo in explorer yes? then are we unpacking that zip into there? So for me it will be github/vinnydude.repo/my-repo? Or is it github/my-repo? or is my-repo vinnydude.repo?
my-repo = vinnydude.repo

so your path should look like github/vinnydude.repo

look at pic 2 on the right the explore window for my github look at the path
 

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
Ok, next! :p

inside the my-repo folder there is repository.your repo, that's getting changed to repository.vinnydude.repo yes?

Then, the addon.xml inside that folder has the info just for that? And the addon.xml in the folder before will have all the stuff for every folderapp that is in the repo folder?!
 

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
correct, but its better if you make it shorter like repository.vinnydude, your repo folder name doesnt have to match your github repo name

yes to the addon.xml inside that folder has the info just for that. here is my addon.xml file as guidance

yes to And the addon.xml in the folder before will have all the stuff for every folderapp that is in the repo folder?!

Code:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="repository.mash2k3" name="All Addons by Mash2k3" version="1.2" provider-name="Mash2k3">
	<extension point="xbmc.addon.repository" name="Addons from Mash2k3">
		<info compressed="false">https://github.com/xxxx/xxxx-repository/raw/master/addons.xml</info>
		<checksum>https://github.com/xxxx/xxxx-repository/raw/master/addons.xml.md5</checksum>
		<datadir zip="true">https://github.com/xxxx/xxxx-repository/raw/master/zips</datadir>
	</extension>
	<extension point="xbmc.addon.metadata">
		<summary>Repo for Movie25</summary>
		<description>Download and install addons from Mash2k3.......For OFFICIAL !! Support Visit XBMCHUB.COM</description>
		<platform>all</platform>
	</extension>
</addon>
 
Last edited:

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
Awesome, I think I should be good from here :D

Going to leave having another go till tomorrow though, had one hell of a crap day today and need to chill :p

Cheers for putting this together man, also cheers to Mickey for the original :)
 

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
Think i'm about there! If someone could give this a quick once over to make sure it's all correct that would be awesome!

https://github.com/vinnydude/vinnydude.repo

A couple of quick questions, the fanart.jpg, what's that for? Secondly, my plugin relies on urlresolver. How do I get it to install that with the plugin?
 

Mikey1234

Banned
May 6, 2012
1,441
0
0
UK
in between

requires just like requires python you add this

Code:
        <import addon="script.module.urlresolver"  version="0.0.1"/>
 

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
Awesome. With the version number, should I match that with what is the current version? Or will it update it as and when a new version is released?
 

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
So I'm good to go then? And the file I give to people to install the repo is the repository-vinnydude-1.0.zip that we created yeah?!
 

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
i installed your repo but it is blank once i open it.

one thing i noticed in the repo addon.xml file there was a typo, remove M
<info compressed="false">https://github.com/Vinnydude.repo/Mrepository.vinnydude/raw/master/addons.xml</info>

also wanted to ask have you been running the addons_xml_generator.py file
 

Vinnydude

Developer
Jan 11, 2013
486
0
0
UK
Just updated that now, I have been using the generator yeah so I changed the typo in the folder, zipped it and replaced the previous zip and then ran the generator too.

*fingers crossed*
 

mash2k3

Banned
Dec 21, 2012
358
0
0
Baltimore,MD
your problem is your url links, its incorrect

Code:
<info compressed="false">https://github.com/Vinnydude.repo/repository.vinnydude/raw/master/addons.xml</info>
<checksum>https://github.com/Vinnydude.repo/repository.vinnydude/raw/master/addons.xml.md5</checksum>
<datadir zip="true">https://github.com/Vinnydude.repo/repository.vinnydude/raw/master/zips</datadir>
it should be

Code:
<info compressed="false">https://github.com/vinnydude/vinnydude.repo/raw/master/addons.xml</info>
<checksum>https://github.com/vinnydude/vinnydude.repo/raw/master/addons.xml.md5</checksum>
<datadir zip="true">https://github.com/vinnydude/vinnydude.repo/raw/master/zips</datadir>