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

jZip - Sore many files in one! Zips are semi-crypted! One-Download installer creator inside!

Started by jesusthekiller, 24 June 2013 - 12:39 PM
jesusthekiller #1
Posted 24 June 2013 - 02:39 PM
jZIP

XRAHX for all!



What is jZIP?

jZIP allows you to store many files in one. Zips are also crypted to be human unreadable - it is not safe crypting.


It allows recursive zipping, automatically omits '/rom' directory and output file. It also makes distributing programs easy :)/>


XHRAX?

It's "`ZIP`" after crypting - Zip file header.


Note:

DO NOT ZIP ZIPS - Inception will break everything…


How to use?

To zip file(s)


zip <z|zip> <zip name to be displayed> <output file> <file/dir 1> [...]


To unzip file(s)


zip <u|unzip> <zip file>


Screenshots:

Spoiler

Crypted code:



Zipping:



Unzipping:





Download:

pastebin get zgTgKfqx zip


License (GNU GPL):


Spoiler




jZIP
Copyright © 2013 Jesusthekiller

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.





One download file creator:


It creates installers using Zips. Zip is uploaded to pastebin so only one download is necessary.

Download: pastebin get v21qsHr0 ziptoexe


More info inside.





jZIP API:


To load API:


shell.run('zip', 'loadapi')


Do not use os.loadAPI on it!


API Documentation:
  • zip.zip(<zip name>, <output file>, <file/dir1>, …)
Makes zip. Works like `zip z <zip name>, <output file>, <file/dir1>, …`
  • zip.unzip(<zip file>)
Unzips zip. Works like `zip u <zip file>`. CWD (current working directory) dependent!
superaxander #2
Posted 25 June 2013 - 02:02 AM
Really nice and cool. ZIP API? Will you be releasing that?
Zudo #3
Posted 25 June 2013 - 02:53 AM
Great program, but the name has already been taken. :)/>
jesusthekiller #4
Posted 25 June 2013 - 04:05 AM
Really nice and cool. ZIP API? Will you be releasing that?

It was inside (broken), just it wasn't documented :P/>. Documentation added, I'll make proper API today.

And thanks!

Great program, but the name has already been taken. :)/>

Thanks! And who cares about the name? :P/>




EDIT: jZIP API fixed!