Repository navigation
How To Make A Package
Packages live in pkg/<name>/.
At minimum, a package should have:
manifest.luainstall.luaremove.lua
Optional:
upgrade.lua- extra Lua helpers
manifest.lua returns a table:
return {
version = "1.0",
desc = "Package description",
dependencies = { "base" },
}Supported dependency formats:
- a single string
- an array of strings
- an array of tables with fields like
name,package,pkg, or[1]
install.lua runs when the package is installed.
Typical responsibilities:
- copy files into the runtime
- create directories
- verify installation
- print progress messages
remove.lua should undo what install.lua did.
Example responsibilities:
- delete installed files
- clean up startup hooks
- remove directories only if they were created by the package
If your package requires another package, declare it in manifest.lua.
Example:
return {
version = "1.0",
desc = "My addon package",
dependencies = { "base", "sys" },
}Pacman will try to install dependencies first.
If your package has upgrade.lua, pacman can use it during upgrade.
If not, upgrade usually falls back to remove + install behavior.
If your package needs host-side Python files:
- place the files under
python/ - document any host-side behavior clearly
- Make a guide on how/where users should put your python files- Make sure to state that you use python files in any way and if they are an addition to any original/existing python files, you may (want to) get your files included in the next release.
pkg/example/
manifest.lua
install.lua
remove.lua
upgrade.lua
- Packages must install cleanly from
pkg/<name>/. - Package scripts should not depend on hidden manual steps unless the package is explicitly a bootstrap package.
- If a package touches host-side files, document exactly what it changes.
- If a package depends on another package, declare it in
manifest.lua.
Before submitting a package, check:
- install works from a clean state
- remove restores the previous state as much as possible
- upgrade does not leave stale files behind
- documentation exists for any new behavior
- you may include a wiki(.md) file with your package for instructions on how to install and use your package.
- You may also provide your own installer when submitting a package with files that install outside of the computercraft environment, Use Inno Setup to compile the installer, include your compile script(.iss) in your submission, we will compile, test, and publish the release file for you. Feel free to credit yourself in your package in any way.
I do not support packages with a paywall, or any similar blockage that requires users to pay for and any advertising/sponsoring, or program/packages that only a limited amount of people have access to. I also do not approve of programs/packages that allows users to have paid access to consumable items(items that can only be used once) or malware of any sort. I do approve of programs/packages that include an option to donate to the creator(s) of the program/package without this blocking or restricting access to (features of) the program/package. Examples of items prohibited from submission: Evaluation program/demo package, (game)passes, skins of any sort, advertisements, malware. Examples of items that are allowed and excluded from this list: Developer/invite only packages that aren't fully ready for public use, donation requests when using program for the first time, donation requests in small text when running the program or a separate window with reference "Donations" "credits" or similar.