Executable Runner Generator

A tool to generate native wrapper executables (similar to the infamous .bat/.sh wrappers). Fill out the below form and have runners for POSIX (Linux, MacOS, BSD, ...) and Windows generated. If you think relying on a webservice is suspicious, then I warmly recommend installing the tool backing this website: Devel::ExecRunnerGenerator. That's a Raku module.

Paths

Paths are always to be written with forward slashes as separators.

Argument operators

The program and args parameters must have one of the below operators applied to them. Operators are applied by simply prefixing them to the string.
<plain>
Use the arg unchanged
<cmd-args>
Insert the passed arguments. Must not be followed by anything.
<plat-sep>
Change path (with slashes) to have the platform separators.
<abs>
Turn into an absolute path. The base to prefix is the directory the wrapper executable is located in. Separators are normalized to the platform path separators.
<abs-slash>
Turn into an absolute path. The base to prefix is the directory the wrapper executable is located in. Separators are normalized to be a slash.

Arguments

program

Program to call. Either a program name to be searched in PATH, or a path. The following Is are supported:

Do note that the PATH of the environment after modification by the env-add and env-remove have been done is used. So clearing out the PATH variable and then trying to call a program via PATH won't work.

arg0

Use a custom arg0 instead of the program name. This is only supported on Windows, as it's not possible to set arg0 in an exec call using a POSIX shell. All platforms except for Windows generate POSIX shell code.

cwd

The working directory to switch to before calling the program. If empty or missing, the working directory will be left unchanged. Either pass an absolute path and use the plain operator or pass a path relative to the wrappers parent directory and use the abs operator. To set the working directory to the wrappers parent directory itself pass "<abs>.".

args

The arguments to pass to the program. The following argument operators are supported:

env-add

Hash of environment variables to add / overwrite in the programs environment.

env-remove

List of environment variables to remove from the programs env.


But seek first the kingdom of God and his righteousness,
and all these things will be added to you.
The Bible, Matthew 6,33