Cuberite Forum
Local Plugin Repo - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Local Plugin Repo (/thread-2245.html)

Pages: 1 2 3 4


Local Plugin Repo - Nether Mc - 12-11-2015

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


RE: Local Plugin Repo - NiLSPACE - 12-11-2015

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.


RE: Local Plugin Repo - Nether Mc - 12-11-2015

(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(?) )?


RE: Local Plugin Repo - NiLSPACE - 12-11-2015

If you'd turn it in a plugin you could create a webadmin page to browse and install plugins Smile


RE: Local Plugin Repo - Schwertspize - 12-11-2015

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


RE: Local Plugin Repo - NiLSPACE - 12-11-2015

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.


RE: Local Plugin Repo - Nether Mc - 12-11-2015

Does Lua have a zipfile module like python? The plugin could also unzip it.

Is there an API for the plugin Repo?


RE: Local Plugin Repo - Schwertspize - 12-11-2015

Downloading a zip.... Many "normal" people will use it but a program can't make use of git?


RE: Local Plugin Repo - Nether Mc - 12-11-2015

(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.


RE: Local Plugin Repo - NiLSPACE - 12-11-2015

@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.