Re: Multiple entry points (MS Windows)

[email protected] (Oliver Betz) Fri, 24 Apr 2020 17:16:37 +0200
Newsgroups perl.par
Message-ID <[email protected]>
Hi Johan,

> I have an application that comes in two forms: as a command line tool, and
> as a GUI tool. I want to package these in a single binary, using pp

which benefit do you expect from packing:

Avoiding "installation", reducing size, or something else?

> multi-script feature. So far, so good.
>
> But on Windows it matters whether the program is built with --gui or not.
> If I build with --gui invoking the command line version will make all
> terminal output disappear. If built without --gui the GUI invokation will
> show a nasty terminal window...

How do you invoke the "plain Perl" versions?

> Is there an elegant solution?


Without par, you could use two separate Perl wrappers.

Oliver