NAME

Luv::CLI::Package - packages a luv project into a .love file

VERSION

version 0.001

SYNOPSIS

my $pkg = Luv::CLI::Package->new(manifest => $manifest);
my $output_path = $pkg->build;

DESCRIPTION

Assembles a project's source, vendored libraries, and assets (plus main.lua/conf.lua from the project root) into a single .love zip archive, as described by a Luv::CLI::Manifest.

NAME

Luv::CLI::Package - packages a luv project into a .love file

METHODS

build()

Builds the .love archive and writes it to the manifest's configured build directory and output filename. Returns the path to the written file.

add_dir($zip, $dir, $zip_prefix)

Recursively adds every file under $dir to $zip, placed under $zip_prefix within the archive. Skips anything under the manifest's build directory.

AUTHOR

Nobunaga <nobunaga@cpan.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Nobunaga <nobunaga@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2026 by Ogun.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.