Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto update feature #4

Open
neofreko opened this issue Dec 8, 2012 · 16 comments
Open

Auto update feature #4

neofreko opened this issue Dec 8, 2012 · 16 comments

Comments

@neofreko
Copy link
Owner

neofreko commented Dec 8, 2012

never figured out how to make a repo out of this

@foreverguest
Copy link
Contributor

Check this project: https://github.com/hadynz/repository.arabic.xbmc-addons
They have created a subdir 'repo' with all their addons packed.

@neofreko
Copy link
Owner Author

Following that arabic plugin example means we have to manually make a
release (as zip file). I want to avoid that. And zip file will clutter the
source tree (worse consequence than the former).

Well, i guess creating zip file manually is acceptable. But it has to be
somewhere outside the source tree
On Dec 11, 2012 2:24 AM, "Leonardo Cervo" [email protected] wrote:

Check this project:
https://github.com/hadynz/repository.arabic.xbmc-addons
They have created a subdir 'repo' with all their addons packed.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-11207490.

@foreverguest
Copy link
Contributor

What about creating another repository, just for the releases?

@neofreko
Copy link
Owner Author

we can use this method right?
http://developer.github.com/v3/repos/contents/#get-archive-link

this should solve our problem with binary releases.

To release our plugin we just need to update the versions string within our
addons.xml, and download will proceed transparently.

will it works? :D

On Tue, Dec 11, 2012 at 9:58 PM, Leonardo Cervo [email protected]:

What about creating another repository, just for the releases?


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-11242368.

http://neofreko.posterous.com - Tokyo Gaijin
http://navinot.com - Slashing Web & Online Strategy

@neofreko
Copy link
Owner Author

OK, i'm confused. So far, this is what I get.

we'll need a datadir, repo xml will point into it and xbmc can fetch the addon by constructing the URL as: [datadir]/[repo.id]-[version].zip

Which is probably what you've been trying to explain to me by that example link :D

OK, let's go with the example you gave. it won't be too painful. few KBs won't hurt future bandwidth standard :D

@neofreko
Copy link
Owner Author

OK, installing repo file keeps getting me: invalid repo structure

@foreverguest
Copy link
Contributor

Shouldn't the datadir in addons.xml point to http://github.com/neofreko/xbmc-animedreaming/raw/master/repo?

@foreverguest
Copy link
Contributor

Hmm, I think the repo zip should have a folder inside called 'repo.neofreko' with the files.

@neofreko
Copy link
Owner Author

have a shot at it :D

On Wed, Dec 12, 2012 at 12:42 AM, Leonardo Cervo
[email protected]:

Hmm, I think the repo zip should have a folder inside called
'repo.neofreko' with the files.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-11248331.

http://neofreko.posterous.com - Tokyo Gaijin
http://navinot.com - Slashing Web & Online Strategy

@foreverguest
Copy link
Contributor

It works with a structure like:

repository.neofreko-1.0.0.zip
   - repository.neofreko
       -- addon.xml
       -- icon.png
       -- changelog.txt

@neofreko
Copy link
Owner Author

strange, xbmc keeps saying it doesn't have correct structure
repository neofreko 2012-12-12 10-39-58

@foreverguest
Copy link
Contributor

Have you removed old one from .xbmc/addons/packages?

@foreverguest
Copy link
Contributor

Have you been able to make it work? I just tested and the repo installs fine but when I try to download the addon, it starts but then finish without installing.

@neofreko
Copy link
Owner Author

Keep spewing incorrect structure for me :(
So, the repo is okay then. Good.
If the addon doesn't install, it means the zipped files are still incorrect?
On Dec 20, 2012 3:47 AM, "Leonardo Cervo" [email protected] wrote:

Have you been able to make it work? I just tested and the repo installs
fine but when I try to download the addon, it starts but then finish
without installing.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-11542487.

@foreverguest
Copy link
Contributor

Ahh, tried to manually install the addon file and got a 'invalid structure' message, added folder plugin.video.animedreaming.tv inside zip file and it worked.

@neofreko
Copy link
Owner Author

Cool! Did you retry installing via repo again? Did it finally work?
On Dec 20, 2012 5:41 AM, "Leonardo Cervo" [email protected] wrote:

Ahh, tried to manually install the addon file and got a 'invalid
structure' message, added folder plugin.video.animedreaming.tv inside zip
file and it worked.


Reply to this email directly or view it on GitHubhttps://github.com//issues/4#issuecomment-11547466.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants