开发者

How can I create a portable strawberry with extra bundled modules?

开发者 https://www.devze.com 2023-02-07 09:14 出处:网络
The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it.However, I\'m still having to install CPAN modul开发者

The portable strawberry perl is a godsend-- I can bundle it into an NSIS installer along with the actual scripts and have the user double click it. However, I'm still having to install CPAN modul开发者_开发知识库es that our scripts need, manually on each user's computer.

Is there a portable way to 'inject' cpan modules into strawberry perl's portable version?

Would it be a good idea to take the portable strawberry on a development machine, install modules via CPAN, and re-zip it for distribution? (I imagine I'd need to fix the install location to c:\custom-perl or something if I do this). Anyone know of a more direct way? I suppose I should script the cpan commands into the installer, but it would be nice if the user didn't have to wait 20 minutes+ for the installer (which is how long it takes to compile all dependencies).


I think if you use one of the CPAN tools (cpan/cpanp/cpanm) it should install just fine to Z:\<strawberry path>\perl\site\lib and then you can pack the whole thing up.

0

精彩评论

暂无评论...
验证码 换一张
取 消