This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Pyuu's profile picture

plip v2.0 - Package downloader inspired by pip.

Started by Pyuu, 24 December 2016 - 09:38 PM
Pyuu #1
Posted 24 December 2016 - 10:38 PM
plip Version 2.0

Package downloaded inspired by pip!

What is this?
It's a simple package downloaded, well maybe not a package downloader at all. It just downloads things. I created this program mainly to save me time when testing other applications or updating applications. I was also really bored.

How do I use it?
It's simple, really.
plip install firewolf
The above will download firewolf to its suggested location, in this case, "firewolf."
If you want to select where it downloads:
plip install firewolf to firefox.lua
.
Some programs may autorun after downloading, such as installers, to disable this, add no-autorun as an argument.

Can I see the package list?
You can see the package list Here: https://github.com/P...ter/packages.md

Pastebin:
pastebin run FR1qqiq3
The above command will install plip. Or have a link instead: http://pastebin.com/FR1qqiq3

Adding your Program
If you want to add your program or edit the packages list (which will be very helpful!) please make a request editing this file.
It is optional if you want to add information pertaining to github or what not, it's just something that will be listed as a credit. It's also recommended to link your license as such as what is done on the plip package.

{
	autorun=false,
	name="plip",
	metadata={
		author="Pyuu",
		email="[url="/cdn-cgi/l/email-protection"][email protected][/url]<script data-cfhash='f9e31' type="text/javascript">/* */</script>",
		forumPost="http://www.computercraft.info/forums2/index.php?/topic/28110-plip-package-downloader-inspired-by-pip/",
		github="https://github.com/PyuuCH",
		license="https://raw.githubusercontent.com/PyuuCH/CC-plip/master/LICENSE",
		name="plip Package Manager",
		tags={"package manager","pyuu"},
		version="2.0",
	},
	package={
		["plip"]="https://raw.githubusercontent.com/PyuuCH/CC-plip/v2/plip.lua", -- [filename]="URL",
	},
},

The version tag is also optional. When installing a package using plip, it will save what version you have (if the version tag is present), if you try to install the package with the same version, then it will display a warning about it.

Package Count: 75

Once you do that, the package generator on my end will take care of editing the package listings and the minified file that contains the packages. Which isn't very pretty.
For your program to be accepted, however, you must follow the guidelines posted here!
Thanks for viewing this topic. If there are any problems with the program, please reply here or leave an issue on github! :lol:/>
Edited on 26 December 2016 - 08:44 PM
Pyuu #2
Posted 26 December 2016 - 02:58 AM
Patched a bug that causes some installers to crash that rely on fs. You can update plip to the latest version at any time by running "plip install plip", and updating it will resolve this bug.
CrazedProgrammer #3
Posted 26 December 2016 - 05:50 PM
This is a very neat program! :D/>
I also like how many programs there are in the package list.
Pyuu #4
Posted 26 December 2016 - 08:17 PM
Well, a lot of it was manually added by me but we've had 2 people add programs. :P/>
Right now I'm working on rewriting the program because honestly I think the code is just severely limiting for packages.
Thanks for the feedback.