Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 810 Bytes

package.md

File metadata and controls

26 lines (20 loc) · 810 Bytes

Package Files

Package file from source tree and build targets

Example:

package(
    name = 'server_package',
    type = 'tgz',
    shell = True,
    srcs = [
        # executable
        ('$(location //server:server)', 'bin/server'),
        # conf
        ('//server/conf/server.conf', 'conf/server.conf'),
    ]
)

type can be zip, tar, tar.gz, tgz, tar.bz2, tbztype will also be the suffix of the result file.

shell is optional. With it enable, blade will use shell for archive. Because of the use of multiple processors and cores, pigz will be prefered as default for gzip if available.

Because generating the package is quiet slow, and they are rarely be used in the develop stage. This rule does't run defaultly, --generate-package is required to enable it.