[Fusioninventory-devel] Window Perl install size
Gonéri Le Bouder
goneri at rulezlan.org
Thu Nov 8 09:30:17 UTC 2012
Hello all,
Will testing Tomás Abad new Windows installer, I wondered if it was not
possible to use PAR::Packer to reduce the size and the number of installed
files.
What I did:
cpanm PAR::Packer
vi bootstrap.pl
<<<--
# A list the dependencies to be sur PAR::Packer will include them
# in the final archive, this can also be done with the -M parameter
use File::Which;
use LWP;
use Net::IP;
use UNIVERSAL::require;
use Text::Template;
use XML::TreePP;
use Socket::GetAddrInfo;
use Win32::TieRegistry;
use Win32::Job;
use Win32::OLE;
use Win32::OLE::Const;
use Win32::TieRegistry;
use Win32::Job;
use Parse::EDID;
use Compress::Zlib;
use HTTP::Daemon;
use IO::Socket::SSL;
use LWP::Protocol::https;
use English;
use Getopt::Long;
use Memoize;
use Pod::Usage;
use lib '.';
use lib 'lib';
my $file = shift;
require $file;
<<<--
pp -o bootstrap.exe bootstrap.pl
bootstrap.exe fusioninventory-agent --stdout
This generate a =~ 6MB bootstrap.exe that bundle Perl and the
FusionInventory dependency. I tried it this way:
It works fine. There is still some improvement to do:
- correctly deal with our own lib location
- check if SSL still works, we will need to include IO::Socket::SSL
- imagine a better name for bootstrap.exe
The initial execution of bootstrap.exe will be a bit slow because it has
to extract first the included files. These files are stored in a temp
dir.
Tomás, what is your opinion regarding this solution?
An interesting point is that we will be able to run an inventory just by
downloading the bootstrap.exe and agent source archive.
Best regards,
--
Gonéri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/fusioninventory-devel/attachments/20121108/23ddfa51/attachment.pgp>
More information about the Fusioninventory-devel
mailing list