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

YAPM | Yet Another Package Manager

Started by CLNinja, 21 July 2017 - 06:00 PM
CLNinja #1
Posted 21 July 2017 - 08:00 PM
I know that there are already a bunch of different package management solutions, but I got bored sitting at home today so i decided to make one.

YAPM allows you to put as many files as you can fit into a table (if there even is a limit in lua) and push them into a file that you can easily put onto pastebin and unpack using YAPM.


pastebin get FxHwzDA1 pack

or
pastebin run FxHwzDA1

To use the program, it takes the following arguments


pack <add/remove/dump/out/read> <input/output>
add: Adds a new file to the current package
remove: Removes a previously added package
dump: Prints a list of currently added files
out: Outputs a file of the current package to <output>
read: Takes a package file and writes the data to the respective files

Its pretty simply done, and I'll eventually be making it so you can just run the package file and it will unpack itself.
CLNinja #2
Posted 22 July 2017 - 02:08 AM
YAPM Package files now allow you to run them as programs and they will extract all files they have to the respective places!