Skip to content

Commit cff4a6b

Browse files
committed
documentation update
1 parent 66c7c49 commit cff4a6b

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ install:
1818
- sudo apt-get -y install qt5-default qttools5-dev-tools
1919

2020
script:
21-
- qmake $TRAVIS_BUILD_DIR/src/peb.pro
21+
- qmake -qt=qt5 $TRAVIS_BUILD_DIR/src/peb.pro
2222
- make
2323

2424
notifications:

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Note that PEB is created to work from any folder without installation and all fi
7171
* [Perl scripts with STDIN event loops can be repeatedly fed with data.](#interactive-perl-scripts)
7272
* [Any version of Perl 5 can be used.](#runtime-requirements)
7373
* PEB can be started from any folder.
74-
* [Single file or multiple files, new filename, existing or new directory can be selected by user.](#opening-files-and-folders)
74+
* [Single file or multiple files, new filename, existing or new directory can be selected by user.](#selecting-files-and-folders)
7575
* [Optional warning for unsaved data in HTML forms](#page-settings)
7676
* [Custom labels for dialogs and context menu](#page-settings)
7777
* [Custom icon for windows and message boxes](#icon)
@@ -137,11 +137,11 @@ CONFIG += app_bundle
137137
PEB can also use any Perl on PATH.
138138

139139
## Preparing a Perl Distribution for PEB
140-
Sometimes it is important to minimize the size of the relocatable (or portable) Perl distribution used by a PEB-based application. ``{PEB_binary_directory}/sdk/compactor.pl`` script is one solution to this problem. It finds all dependencies of all Perl scripts in the ``{PEB_binary_directory}/resources/app`` directory and copies them in a new ``{PEB_binary_directory}/perl/lib`` folder; a new ``{PEB_binary_directory}/perl/bin`` is also created. The original ``bin`` and ``lib`` folders are saved as ``{PEB_binary_directory}/perl/bin-original`` and ``{PEB_binary_directory}/perl/lib-original`` respectively. These directories should be manually archived for future use or removed.
140+
Sometimes it is important to minimize the size of the relocatable (or portable) Perl distribution used by a PEB-based application. ``{PEB_binary_directory}/sdk/compactor.pl`` script is one solution to this problem. It finds all dependencies of all Perl scripts in the ``{PEB_binary_directory}/resources/app`` directory and copies them in a new ``{PEB_binary_directory}/perl/lib`` folder; a new ``{PEB_binary_directory}/perl/bin`` is also created. The original ``bin`` and ``lib`` folders are saved as ``{PEB_binary_directory}/perl/bin-original`` and ``{PEB_binary_directory}/perl/lib-original`` respectively. These directories should be manually archived for future use or removed.
141141

142-
``compactor.pl`` should be started using ``{PEB_binary_directory}/compactor.sh`` on a Linux or a Mac machine and ``{PEB_binary_directory}/compactor.cmd`` on a Windows machine to ensure that only the Perl distribution used by PEB is going to start ``compactor.pl``. This is necessary to avoid dependency mismatches with any other Perl on PATH.
142+
``compactor.pl`` should be started using ``{PEB_binary_directory}/compactor.sh`` on a Linux or a Mac machine and ``{PEB_binary_directory}/compactor.cmd`` on a Windows machine to ensure that only the Perl distribution used by PEB is going to start ``compactor.pl``. This is necessary to avoid dependency mismatches with any other Perl on PATH.
143143

144-
``compactor.pl`` relies on ``Module::ScanDeps`` and ``File::Copy::Recursive`` CPAN modules, which are located in the ``{PEB_binary_directory}/sdk/lib`` folder.
144+
``compactor.pl`` relies on ``Module::ScanDeps`` and ``File::Copy::Recursive`` CPAN modules, which are located in the ``{PEB_binary_directory}/sdk/lib`` folder.
145145

146146
## Perl Scripts API
147147
Every Perl script run by PEB is called by clicking a link or submitting a form to a pseudo filename composed from the name of the JavaScript object with the settings of the Perl script and a ``.settings`` extension. Perl data output is seamlessly inserted into the HTML DOM of the local page using JavaScript.
@@ -152,11 +152,6 @@ A minimal example of a Perl script settings object:
152152
var perlScriptObject = {};
153153
perlScriptObject.path = '{app}/test/test.pl';
154154
perlScriptObject.stdout = 'test';
155-
perlScriptObject.requestMethod = 'POST';
156-
perlScriptObject.inputDataHarvester = function() {
157-
var data = document.getElementById('input-box-id').value;
158-
return data;
159-
}
160155
```
161156

162157
* **path:**
@@ -195,10 +190,10 @@ perlScriptObject.inputDataHarvester = function() {
195190
}
196191
```
197192

198-
* **close_command:**
193+
* **close_command:**
199194
The ``close_command`` object property designates the command used to gracefully shut down an interactive script when the containing PEB window is going to be closed. Upon receiving it, the interactive script must start its shutdown procedure.
200195

201-
* **close_confirmation:**
196+
* **close_confirmation:**
202197
Just before exiting an interactive script must print on STDOUT its ``close_confirmation`` to signal PEB that it completed its shutdown. All interactive scripts must exit in 5 seconds after ``close_command`` is given or any unresponsive scripts will be killed and PEB will exit.
203198

204199
Perl scripts running for a long time should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter. Some builds of Perl may not give any output until the script is finished when buffering is enabled.
@@ -286,7 +281,7 @@ The binary file of the browser, ``peb``, ``peb.app``, ``peb.dmg`` or ``peb.exe``
286281
Note that start page pathname is case sensitive.
287282

288283
<a name="icon"></a>
289-
* **Icon:**
284+
* **Icon:**
290285
A PEB-based application can have its own icon and it must be located at ``{PEB_binary_directory}/resources/app/app.png``. If this file is found during application startup, it will be used as the icon of all windows and dialog boxes. If this file is not found, the default icon embedded into the resources of the browser binary will be used.
291286

292287
## Data Directory
@@ -320,10 +315,10 @@ pebSettings.closeConfirmation =
320315
'Are you sure you want to close the window?';
321316
```
322317

323-
* ``autoStartScripts``
318+
* ``autoStartScripts``
324319
These are Perl scripts that will be started immediately after the local page is loaded.
325320

326-
* ``closeConfirmation``
321+
* ``closeConfirmation``
327322
When user starts closing PEB, it checks for any unsaved data in all forms. If any user data in HTML forms is detected, PEB displays a warning using the text of ``pebSettings.closeConfirmation``. If no warning text is found, PEB assumes that no warning has to be displayed and exits immediately.
328323

329324
## Functional Pseudo Filenames

0 commit comments

Comments
 (0)