unicornpkg recommends the following paths for package contents:
/binfor executable Lua files. This path should be onshell.path./libfor modules, APIs, and libraries. This path should be onpackage.pathif you're writing complementary software./usr/share/help/for help files. This path should be onhelp.path./usr/libexecfor executable files for use by other programs. This path should not be onshell.pathorpackage.path./usr/libLoadAPIfor APIs meant to be loaded byos.loadAPI. This path should not be onpackage.path. Packages should refrain from loading their APIs into the global environment by default./etc/startupfor files that should be executed when starting the machine.- Implementations MAY encourage use
/startupinstead when compatibility with older versions of ComputerCraft is not desired. Such older versions require/startupto be a file.
- Implementations MAY encourage use
/homefor user data, or/home/{user}if you are writing a multi-user system.
If your use-case is not specified here, follow IEEE 1003.1-2017 (POSIX).