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/APPIMAGE.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Both PEB AppImage configuration files are put on their places in the AppImage di
25
25
## PEB AppImage Builder Docker Container
26
26
27
27
An easy building environment for PEB AppImage executables is the [PEB AppImage Builder Docker Container](https://github.com/ddmitov/perl-executing-browser/blob/master/sdk/Dockerfile).
28
-
To start it, type the following commands in the ``{PEB_executable_directory}``:
28
+
To start it, run the following commands in the ``{PEB_executable_directory}``:
PEB is created to work from any directory without installation and all paths used by PEB are relative to the directory of the PEB executable, labeled as ``{PEB_executable_directory}`` within this documentation. Only one folder and two file names are hard-coded in C++ code for compatibility with the [Electron](http://electron.atom.io/) framework.
4
+
5
+
A minimal ``{PEB_executable_directory}`` looks like this:
6
+
7
+
```bash
8
+
.
9
+
├── {PEB_executable}
10
+
└── resources
11
+
└── app
12
+
├── index.html
13
+
└── app.png
14
+
```
15
+
16
+
***Application Directory:**
17
+
The application directory path must be: ``{PEB_executable_directory}/resources/app``
18
+
All Perl scripts started by PEB must be located within this directory and its subdirectories.
19
+
The working directory of all PEB Perl scripts is the application directory.
20
+
21
+
***Start Page:**
22
+
Start page pathname must be: ``{PEB_executable_directory}/resources/app/index.html``
23
+
If start page is missing, an error message is displayed.
24
+
25
+
<aname="icon"></a>
26
+
***Icon:**
27
+
Icon pathname must be: ``{PEB_executable_directory}/resources/app/app.png``
28
+
If icon file is found on application startup, it is used as application icon.
29
+
If icon file is not found, the default icon embedded in the resources of the browser binary is used.
Copy file name to clipboardExpand all lines: doc/INTERACTIVE.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
@@ -32,10 +32,10 @@ PEB interactive Perl scripts are able to receive user input multiple times after
32
32
33
33
## Examples of Interactive Perl Scripts
34
34
35
-
The [index.htm of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/index.html) demonstrates how to start automatically one Perl interactive script based on STDIN input in two instances.
35
+
The [index.htm of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/index.html) demonstrates how to start automatically one Perl interactive script using STDIN input in two instances.
36
36
37
-
The [interactive.pl script of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl-scripts/interactive.pl) is an example of a Perl interactive script based on STDIN input.
37
+
The [interactive.pl script of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl-scripts/interactive.pl) is an example of a Perl interactive script using STDIN input.
38
38
39
-
The [index-windows.htm of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/index-windows.html) demonstrates how to start automatically one Perl interactive script based on temporary files in two instances.
39
+
The [index-windows.htm of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/index-windows.html) demonstrates how to start automatically one Perl interactive script using a temporary file in two instances.
40
40
41
-
The [interactive-windows.pl script of the demo package](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl-scripts/interactive-windows.pl) is an example of a Perl interactive script based on temporary files.
41
+
The [interactive-windows.pl](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl-scripts/interactive-windows.pl)script of the demo package is an example of a Perl interactive script using a temporary file. This script creates a temporary file on startup and sends back to PEB its full path. PEB sends data to the interactive script by forwarding this path and a message text to the STDIN of a helper script, [messenger.pl](https://github.com/ddmitov/perl-executing-browser/blob/master/resources/app/perl-scripts/messenger.pl). The helper script writes all data received from PEB in the temporary file. The interactive script checks periodically its temporary file for any new messages.
0 commit comments