NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Bundling using PAR (Score:1)
Although not a CamelBones app, Blue Coconut [husk.org] includes a lot of Perl libraries. I use the following Shell Script step in Xcode to use PAR to bundle the required resources:
pp -I ./perl_lib -p -o BlueCoconut.par BlueCoconut.pl && unzip -o BlueCoconut.par -d par && rm -rf build/Blue\ Coconut.app/Contents/Resources/perl_lib && mv par/lib build/Blue\ Coconut.app/Contents/Resources/perl_lib && rm -rf par
Step by step: use pp (PAR packager) to make a PAR file for BlueCoconut.pl;
Re:Bundling using PAR (Score:2)
Re:Bundling using PAR (Score:1)
BEGIN {my $lib = File::Spec->catfile($Bin, "perl_lib");
unshift @INC, $lib;
}
Also, the use of (I think) -I means that I don't get a full executable, but a zipfile. (I really should look back over what that shell script does and provide a better explanation somewhere, but at least it's now out there for people to find.)
Reply to This
Parent