What do I need?Start with an installation of any version of Strawberry Perl 5.12.x (or higher). BEWARE:You'll need to install Strawberry Perl to a directory OTHER THAN C:\strawberry. Install WiX-3.0 installer from http://wix.sourceforge.net/downloadv3.html Install 4 modules, in this order:
What do I do after everything's installed?There are two more things to do:
package CustomPerlBuild;
use strict;
use warnings;
use File::Temp;
use File::Spec::Functions qw( catdir catfile );
use File::Slurp qw( write_file );
use parent 'Perl::Dist::Strawberry';
sub new {
my ($class, $workdir) = @_;
die "FATAL: workdir name must be defined and can't contain spaces" if !$workdir || $workdir =~ / /;
my %args = (
# Set this to 2 for now. You can set it to 1 later.
trace => 2,
temp_dir => $workdir,
image_dir => catdir($workdir, 'strawberry'),
perl_version => '5142',
# Change these as appropriate for what you want to call your distribution.
app_publisher_url => 'http://publisher.website.invalid/',
app_id => 'customperl',
app_name => 'Custom Perl',
app_publisher => 'Publisher Name',
build_number => 11, #the 4th digit in version 5.14.2.
If you want to do more complicated things than just add additional modules, read the Perl::Dist::WiX documentation, and then e-mail us and we'll do our best to help you out. |