Catalyst PAR archives seem to be the best idiotfriendly way to distribute your app. They're convenient, self-contained, hard to break. But the last step to ultimate idiotfriendliness is missing - they do require some command line options to be usable. I didn't find it in documentation, so I ask you to share the knowledge:
Is there any non-hackish way to set default script and options for Catalyst PAR archive? Or at least for the pp resulting binary?
Example:
lrem@lrem ~/LNE $ make catalyst_par
include /home/lrem/LNE/inc/Module/Install.pm
Writing PAR "lne.par"
lrem@lrem ~/LNE $ pp -o lne lne.par
lrem@lrem ~/LNE $ ./lne
Usage:
[parl] lne[.par] [script] [arguments]
Examples:
parl lne.par lne_server.pl -r
myapp lne_cgi.pl
Available scripts:
lne_cgi.pl
lne_create.pl
lne_fastcgi.pl
lne_server.pl
lne_test.pl
lrem@lrem ~/LNE $
Now, what I want is that in the last step just running the program (probably by leftclicking in some KDE) would be equivalent to what now takes
./lne lne_server.pl 80.
--
Someday, people who know how to use computers will rule over
those who don't. And there will be a special name for them:
secretaries. -Dilbert quote
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.