- CONFIGURATION FILE
- CREATING THE INSTALLER
- COPYRIGHT AND LICENSE
- DISCLAIMER OF WARRANTY
Perl::Dist::Builder - Create win32 Perl installers
use Perl::Dist::Builder; my $pdb = Perl::Dist::Builder->new( 'vanilla.yml' ); $pdb->remove_image; $pdb->build_all;
Perl::Dist::Builder is alpha software.
Perl::Dist::Builder uses a configuration file to automatically generate a complete, standalone Perl distribution in a directory suitable for bundling into an executable installer.
Perl::Dist::Builder requires Perl and numerous modules. See Perl::Dist::Bootstrap for details on how to bootstrap a Perl environment suitable for building new Perl distributions.
Perl::Dist::Builder is not yet integrated with tools to create the executable. Installers for Vanilla Perl, etc. have been created with the free Inno Setup tool. Inno Setup can be downloaded from jrsoftware.org: http://www.jrsoftware.org/isinfo.php
Inno Setup is configured with .iss files included in Perl::Dist::Vanilla and Perl::Dist::Strawberry. A future version of Perl::Dist::Builder will likely auto-generate the .iss file.
my $pdb = Perl::Dist::Builder->new( $yaml_config_file );
Create a new builder object, initialized from a YAML configuration file.
Runs all build tasks in order:
Does not delete the existing image directory.
Downloads binary packages (e.g. compiler, dmake) from URLs provided in the config file. Unpacks them (or portions of them) into the image directory.
Uses the copy of perl in the image directory to run CPAN and install modules defined in the config file.
Copies local files into the image directory. E.g. documentation, menu shortcuts, CPAN starter config file, etc.
Downloads tarballs for modules defined in the config file, unpacks them and installs them directly using "Makefile.PL" and "dmake". Does not invoke CPAN. (Used primarily to get necessary prerequisite modules to make CPAN work sanely and safely without binary helpers on Win32.)
Downloads Perl source tarball, unpacks it, builds it, and installs it into the image directory.
Removes the "image_dir" directory specified in the config file, if it exists, and prints a diagnostic message.
Massive refactoring/rewrite is needed. This initial version is a crudely modulized form of individual perl scripts used in the early development process of Vanilla Perl. The next version is likely to use a plugin-driven approach for extensibility and customization. Other than
build_all, the API is almost certain to change.
Additional documentation will be created after refactoring.
Please report any bugs or feature using the CPAN Request Tracker. Bugs can be submitted by email to
bug-Perl-Dist@rt.cpan.org or through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Perl-Dist
David A. Golden (DAGOLDEN)
Copyright (c) 2006 by David A. Golden
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.