You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/CONSTANTS.md
+41-48Lines changed: 41 additions & 48 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,60 +30,53 @@ A typical ``{PEB_executable_directory}`` looks like this:
30
30
The ``bin`` subdirectory must contain the Perl interpreter.
31
31
The ``lib`` subdirectory must contain all Perl modules used by PEB Perl applications.
32
32
33
-
***Perl Interpreter:**
34
-
Relocatable Perl interpreter, if present, must be located in the ``{PEB_executable_directory}/perl/bin`` folder.
35
-
The Perl interpreter must be named ``perl`` on Linux and Mac machines and ``wperl.exe`` on Windows machines.
36
-
If a relocatable Perl interpreter is not found, PEB will use the first Perl interpreter on PATH.
33
+
***Perl Interpreter:**
34
+
Relocatable Perl interpreter, if present, must be located in the ``{PEB_executable_directory}/perl/bin`` folder.
35
+
The Perl interpreter must be named ``perl`` on Linux and Mac machines and ``wperl.exe`` on Windows machines.
36
+
If a relocatable Perl interpreter is not found, PEB will use the first Perl interpreter on PATH.
37
37
38
-
***Perl Modules Directory:**
39
-
All Perl modules found in the ``{PEB_executable_directory}/perl/lib`` folder are accessible via the ``PERL5LIB`` environment variable for all Perl applications executed by PEB.
38
+
***Perl Modules Directory:**
39
+
All Perl modules found in the ``{PEB_executable_directory}/perl/lib`` folder are accessible via the ``PERL5LIB`` environment variable for all Perl applications executed by PEB.
40
40
41
41
***Resources Directory:**
42
42
The resources directory must contain the ``app`` subdirectory with all necessary application files.
43
-
``data`` and ``logs`` subdirectories are optional, as well as the application icon file:``app.png``
43
+
``data``subdirectory and the application icon file ``app.png`` are optional.
44
44
The resources directory path must be: ``{PEB_executable_directory}/resources``
45
45
46
-
***Application Directory:**
47
-
All Perl application files must be located within this folder.
48
-
The application directory path must be: ``{PEB_executable_directory}/resources/app``
49
-
PEB application directory is labeled as ``{PEB_app_directory}`` within this documentation.
50
-
By default the working directory of all Perl scripts run by PEB is the application directory.
51
-
52
-
PEB application directory pathname is compatible with the [Electron](http://electron.atom.io/) framework.
53
-
[Epigraphista](https://github.com/ddmitov/epigraphista) is an application which is runnable by both PEB and [Electron](http://electron.atom.io/).
If both files are present, ``index.html`` takes precedence.
61
-
If ``index.html`` is missing, ``local-server.json`` is used if available.
62
-
If both entry files are missing, an error message is displayed.
63
-
64
-
<aname="icon"></a>
65
-
***Icon:**
66
-
A PEB-based application may have its own icon and the pathname must be:
67
-
``{PEB_executable_directory}/resources/app.png``
68
-
69
-
If this file is found during application startup, it is used as the icon of the application and all dialog boxes.
70
-
If this file is not found, the default icon embedded in the resources of the browser binary is used.
71
-
72
-
***Data Directory:**
73
-
Data directory may contain any writable files used or produced by a PEB-based application.
74
-
The data directory path must be: ``{PEB_executable_directory}/resources/data``
75
-
Perl scripts can access this folder using the environment variable ``PEB_DATA_DIR``:
76
-
77
-
```perl
78
-
my$data_directory = $ENV{'PEB_DATA_DIR'};
79
-
```
80
-
<aname="log-files-directory"></a>
81
-
***Log Files Directory:**
82
-
When log files directory is found during application startup, PEB assumes that logging is required and a separate log file is created for every browser session following the naming convention:
0 commit comments