The packagecore Command
The packagecore
command is the most common route for invoking PackageCore and
building packages.
Generally, it will be invoked from inside of the source code to be built as:
packagecore "$(cat VERSION)"
Doing so will cause it to load a configuration from packagecore.yaml
in the
same directory.
The syntax for its use is:
packagecore [options] <version> [<release number>]
Where <version>
is the current version of your software, and
<release number>
is the current release for that version of your software.
Options
You change the default behavior of the command using the following flags/options:
-c <yaml file>, --config=<yaml file>
:
The path to the yaml configuration file. Defaults to
packagecore.yaml
.
-C <source dir>, --src=<source dir>
:
The source directory to build. Defaults to './'.
-
-p <distribution name>, --package=<distribution name>
: Instead of building all packages in a configuration file, build a package for a specific distribution. -
-o <output directory>, --outputdir=<output directory>
: The directory to put generated packages into. If the directory does not exist, it will be created. Defaults to ./.
You can also get a list of distribution that packages can currently be built for via:
packagecore -d