Local Plugin Repo
#1
Hello,
i thought that the online plugin repo needs a local program to update, install, etc the plugins
I started with a program that does exactly this.
( https://github.com/Myselfminer/nCuberPlug/ )
If you have any requests or if you don't want such a program, feel free to tell me

PS: Sorry for my bad english
Reply
Thanks given by:
#2
Great idea, but wouldn't it make more sense to make this a plugin instead? It could loop through all the loaded plugins and check if there is a newer version.
Reply
Thanks given by:
#3
(12-11-2015, 06:49 AM)NiLSPACE Wrote: Great idea, but wouldn't it make more sense to make this a plugin instead? It could loop through all the loaded plugins and check if there is a newer version.

What about both? A Plugin AND a program(For browsing or for to read rewiews(?) )?
Reply
Thanks given by:
#4
If you'd turn it in a plugin you could create a webadmin page to browse and install plugins Smile
Reply
Thanks given by:
#5
Such autoupdaters are bad. I think the best way is that every plugin is a git(hub) repo, so pulling can just be done by git pull (or some options here). If we register them as submodules, we can just use git submodule update to update all plugins at the same time
Reply
Thanks given by:
#6
that won't work if you download a plugin as a zip instead of cloning it. Most normal users wil be downloading it as a zip.
Reply
Thanks given by:
#7
Does Lua have a zipfile module like python? The plugin could also unzip it.

Is there an API for the plugin Repo?
Reply
Thanks given by:
#8
Downloading a zip.... Many "normal" people will use it but a program can't make use of git?
Reply
Thanks given by:
#9
(12-11-2015, 05:07 PM)Schwertspize Wrote: Downloading a zip.... Many "normal" people will use it but a program can't make use of git?

But you won't need git; the plugins are stored elsewhere (and if it's dropbox, it's also good), and the program (or the plugin) will download and extract them.
Reply
Thanks given by:
#10
@Schwertspize No, git searches for a hidden ".git" folder. It contains information about the repository. When downloading the source as a zip file it doesn't exist.

@Nether MC No, it doesn't have that normally. You could try this perhaps: https://github.com/davidm/lua-compress-deflatelua It appears to be able to unzip files in pure Lua. It's a little slow perhaps, but that was for the Lua source. Cuberite plugins are much smaller.
Reply
Thanks given by:




Users browsing this thread: 3 Guest(s)