Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1012 Bytes

README.md

File metadata and controls

33 lines (27 loc) · 1012 Bytes

run-fatpacker

Description

A simple scripts that handles setting up:

  • Environment.
  • Downloads cpm if missing.
  • Installs all dependencies to a project local folder
  • Checks for perl compile errors
  • Removes non .pm files from local lib
  • Runs perlstrip on all files.

Usage

Create your cpanfile with all required modules.
A good start is:

requires 'App::FatPacker';
requires 'Perl::Strip';

Now run it like this.

./run-fatpacker myapp.pl

If you have a git repo for your project the script will add cpm as a submodule.

If all goes well you will end up with a new file called myapp.packed.pl which includes all your dependencies.

This was inspired by Andrew Rodland presentation "Fatpack it! Full featured Perl apps in a single file"

See also