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
PEB is created to work from any directory without installation and all file paths are relative to the directory of the PEB executable, which is labeled as ``{PEB_executable_directory}`` within this documentation. ``{PEB_executable_directory}`` may contain only a C++ PEB executable or a Linux [AppImage](https://appimage.org/) with a C++ PEB executable and its Qt libraries all packed in a single file. All names of PEB files and folders are hard coded in C++ code and they are case-sensitive!
7
7
8
+
A typical ``{PEB_executable_directory}`` looks like this:
9
+
10
+
```bash
11
+
.
12
+
├── {PEB_executable}
13
+
├── perl
14
+
│ ├── bin
15
+
│ │ └── {perl_interpreter}
16
+
│ └── lib
17
+
│ └── {perl_modules}
18
+
└── resources
19
+
├── app
20
+
│ └── index.html
21
+
├── app.png
22
+
├── data
23
+
| └── {application_data}
24
+
└── logs
25
+
└── {application_logs}
26
+
```
27
+
8
28
***Perl Directory:**
9
29
The Perl directory, if present, must contain the ``bin`` and ``lib`` subdirectories.
10
30
The ``bin`` subdirectory must contain the Perl interpreter.
@@ -32,22 +52,6 @@ PEB is created to work from any directory without installation and all file path
32
52
PEB application directory pathname is compatible with the [Electron](http://electron.atom.io/) framework.
33
53
[Epigraphista](https://github.com/ddmitov/epigraphista) is an application which is runnable by both PEB and [Electron](http://electron.atom.io/).
34
54
35
-
***Data Directory:**
36
-
Data directory must contain any writable files used or produced by a PEB-based application.
37
-
The data directory path must be: ``{PEB_executable_directory}/resources/data``
38
-
Perl scripts can access this folder using the environment variable ``PEB_DATA_DIR``:
39
-
40
-
```perl
41
-
my$data_directory = $ENV{'PEB_DATA_DIR'};
42
-
```
43
-
<aname="log-files-directory"></a>
44
-
***Log Files Directory:**
45
-
When logging 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:
If this file is found during application startup, it is used as the icon of the application and all dialog boxes.
66
70
If this file is not found, the default icon embedded in the resources of the browser binary is used.
67
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:
Copy file name to clipboardExpand all lines: doc/PACKAGING.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,17 +11,17 @@ Perl Distribution Compactor depends on [Module::ScanDeps](https://metacpan.org/p
11
11
## AppImage Support
12
12
PEB or any PEB-based application can be easily packed as a 64-bit single-file Linux [AppImage](https://appimage.org/) executable by the [AppImage Maker](https://github.com/ddmitov/perl-executing-browser/blob/master/sdk/appimage-maker.sh) script, which has two modes of operation:
13
13
14
-
* packing a PEB Perl application together with a PEB binary, its Qt libraries and a relocatable Perl distribution:
14
+
* packing a Perl application together with a PEB executable, its Qt libraries and a relocatable Perl distribution:
15
15
16
-
```
16
+
```bash
17
17
appimage-maker.sh --include-resources
18
18
```
19
19
20
20
In this case the [AppImage Maker](https://github.com/ddmitov/perl-executing-browser/blob/master/sdk/appimage-maker.sh) invokes the [Perl Distribution Compactor](https://github.com/ddmitov/perl-executing-browser/blob/master/sdk/compactor.pl), which finds all dependencies of all Perl scripts in the ``{PEB_executable_directory}/resources/app`` directory and copies only the necessary Perl modules.
21
21
22
-
* packing only a PEB binary with its Qt libraries:
22
+
* packing only a PEB executable with its Qt libraries:
0 commit comments