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

Packer - auto unpacks it's self

Started by billysback, 26 November 2012 - 04:51 AM
billysback #1
Posted 26 November 2012 - 05:51 AM
Packer is a simple program which packs up multiple files in to a packaged file, this packaged file is also a lua program, run the packaged file and it will unpack it's self and recreate the files you packed up in it.

Usage:

packer output_dir:dir1:dir2:dir3 etc.
requires at lease two dirs, output and dir1, the rest are optional. Split each dir by a ":" dir's cannot contain the ":" symbol.

Download:
Spoilerhttp://pastebin.com/MfZuAruJ

or paste bin get thingy:

pastebin get MfZuAruJ packer

That's it, this means you can give users multiple files in one file, tell them to run the file they downloaded and then use like normal :D/>/>

Thanks :P/>/>/>
LOLerul #2
Posted 26 November 2012 - 08:16 AM
lol.
awesome
rhyleymaster #3
Posted 26 November 2012 - 05:55 PM
Not bad.
bjornir90 #4
Posted 27 November 2012 - 05:03 AM
Very useful for OS makers
ArchAngel075 #5
Posted 27 November 2012 - 06:20 AM
If it could in some way pack directories themselves this could very much be useful! But without it its still as greate! Nice work (Is this close to zip/archiving :? :P/>)