How can I create a portable strawberry with additional modules?

Portable mother-of-pearl perl is a godsend - I can link it to the NSIS installer along with real scripts and ask the user to double-click it. However, I still have to install the CPAN modules that our scripts need manually on each user computer.

Is there a portable way to β€œinject” cpan modules into the portable version of perlberry perl?

Would it be nice to take a portable strawberry on a development machine, install the modules through CPAN and reinstall it for distribution? (I assume that I will need to install the installation location in c: \ custom-perl or something if I do this). Does anyone know of a more direct way? I suppose I should script the cpan command in the installer, but it would be nice if the user did not have to wait 20 minutes + for the installer (how long does it take to compile all the dependencies).

+4
source share
1 answer

I think that if you use one of the CPAN tools (cpan / cpanp / cpanm), it should only set the penalty to Z:\<strawberry path>\perl\site\lib , and then you can pack it all.

+5
source

Source: https://habr.com/ru/post/1337425/


All Articles