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

Packager

Started by KidBrine, 25 January 2018 - 03:22 AM
KidBrine #1
Posted 25 January 2018 - 04:22 AM
Packager 2.1
This is a tool for converting a directory into an installer.

Usage
Packager <Directory to convert> <Default Install directory> <Installer name>

To UnPackage your Package you simply run the file (the name was chosen in the third argument).
If you run the installer with no arguments it installs to the default directory, if you add an argument it installs to the location of the third argument. (as suggested by PiorJade)

I use this for BrineUtil and it saved me from a cluttered pastebin plus it saved me tons of time.

to install packager run
pastebin get Hg98Czb3 Packager

Known Issues

Fixed Bugs
  • Installer is automatically named "Args[3]"
  • Install Directory was named "Args[2]"
Edited on 26 January 2018 - 03:52 AM
Piorjade #2
Posted 25 January 2018 - 09:53 PM
It is not needed but it would be nice to have the ability to unpack the file wherever you want via arguments to the installer.

Basically like this:
<installer name> <path/to/extract/to>

Idk it just seems a bit inconvenient for me to just set a folder where it should extract and you can't change that (unless you edit the path that is saved somewhere inside the installer file)
Edited on 19 May 2018 - 10:49 AM
Smallfrypound #3
Posted 25 January 2018 - 09:54 PM
1. Spits out a "Packager:2: Expected string" error if you do not enter any arguments.
2. Installer is automatically named "Args[3]", instead of what was typed
Edited on 25 January 2018 - 08:58 PM
KidBrine #4
Posted 26 January 2018 - 04:42 AM
It is not needed but it would be nice to have the ability to unpack the file wherever you want via arguments to the installer.

Basically like this:
<installer name> <path/to/extract/to>

Idk it just seems a bit unconvenient for me to just set a folder where it should extract and you can't change that (unless you edit the path that is saved somewhere inside the installer file)
Feature added! Thank you for the suggestion!

1. Spits out a "Packager:2: Expected string" error if you do not enter any arguments.
2. Installer is automatically named "Args[3]", instead of what was typed
For number 2 that was a tiny mistake I made while updating the program once, in the newest version it is fixed. Also I added a message about arguments. Thanks for the feedback!
Edited on 26 January 2018 - 03:51 AM