In short, what this does is it gets all the files in a folder and puts the in to one file. When you run that file is will extract all the files back in to their original file/folder structure.
Almost everyone these days is making their own fancy install script that downloads each file one by one. But what are the people that don't have the HTTP API meant to do? Or what about the people who don't know how to make an install script? Package Maker makes HTTP based installers a thing of the past.
My main 'goal' in ComputerCraft is to essentially allow non-coders/tech savvy people to use the computers. Most people either can't be bothered or don't know how to enabled the HTTP API. Nor can they be bothered/have access to copying files in to their save file. So, what is a way the we can get information to the users computer with out them having access to the internet or their save folder? The user. We simply get the user to copy and paste the package code in to their Lua prompt hit enter and VoilĂ ! You have a new OS, etc. on your computer. Now, you can of course use Pastebin to download the package, then simply run the file.
So this makes it possible to:
Give users without access to their save file (Multiplayer) or the HTTP API the ability to use your program.Remove the need for the developer to make a special installer.Remove the need for the developer to have to host tons and tons of files.
PkgMake <path to the source folder> <name of the package>
For making a package of the root folder simply use '/'.
Download
(I recommend you save the file as 'PkgMake', but it's up to you)
pastebin get K8Bc0WB3 PkgMake
If you have any feedback/problems, give me a yell.
Also, I would like feedback on the copy and paste method. I would like to make it fool proof. Was the method above easy/did it workIt It
It has become apparent that copy and pasting will not work, any other ideas on how to do this?
Edited by oeed, 30 May 2015 - 08:57 AM.