Skip to content

Commit 7af84b9

Browse files
committed
version 0.4.2
1 parent edc0e17 commit 7af84b9

File tree

6 files changed

+28
-14
lines changed

6 files changed

+28
-14
lines changed

CREDITS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ http://www.freehackers.org/thomas/2009/03/10/fixing-qmake-missing-rule-for-ts-qm
215215
http://lemirep.wordpress.com/2013/06/01/deploying-qt-applications-on-linux-and-windows-3/
216216

217217
## Perl 5
218+
https://perlbrew.pl/
219+
https://github.com/skaji/relocatable-perl
220+
http://strawberryperl.com/
221+
218222
http://www.perlmonks.org/bare/?node_id=768448 "Permanently sort a hash"
219223
http://www.perlmonks.org/?node_id=27443 "Checking to see if a particular Module is installed"
220224

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ make
113113
If you are using the Qt Creator IDE, go to 'Projects' and disable the 'Shadow Build' option to produce the binary in the root folder of the project and test the demo package.
114114

115115
## Compile-time Variables
116-
Changing the compile-time variables of PEB requires editing its project file - ``peb.pro``.
116+
Changing PEB compile-time variables requires editing the ``src/peb.pro`` project file before compiling the binary.
117+
117118
* **Macintosh binary type:** ``BUNDLE``
118119
To make a bundle-less binary, which is the default setting:
119120

@@ -141,8 +142,15 @@ The following compile-time variable can tighten further the security of PEB.
141142
## Runtime Requirements
142143
* Qt 5 libraries - their full Linux list can be found inside the ``start-peb.sh`` script,
143144
* Perl 5 distribution - any Linux, Mac or Windows Perl distribution.
144-
[Strawberry Perl](http://strawberryperl.com/) PortableZIP editions are successfully used with all Windows builds of PEB.
145-
[Perlbrew](https://perlbrew.pl/) Perl distributions (5.18.4, 5.23.7) are successfully used with many Linux builds of PEB.
145+
146+
Tested successfully using the following Perl distributions:
147+
Linux x64 [Perlbrew](https://perlbrew.pl/) Perl versions 5.18.4, 5.23.7
148+
Linux x64 [Relocatable Perl](https://github.com/skaji/relocatable-perl) version 5.24.1
149+
Windows x32 [Strawberry Perl](http://strawberryperl.com/) PortableZIP versions 5.12.2.0, 5.16.1.1, 5.20.2.1
150+
151+
To use a Perlbrew Perl with PEB create a symlink to the wanted Perl interpreter named:
152+
``{PEB_binary_directory}/perl/bin/perl``
153+
146154
PEB can also use any Perl on PATH.
147155

148156
## Supported Perl Script Types
@@ -167,7 +175,7 @@ They can not receive any user input once they are started and are divided into t
167175

168176
Two or more non-interactive scripts can be started within a single page. They will be executed independently and their output will be updated in real time using different DOM elements or JavaScript functions. This could be convenient for all sorts of long-running monitoring scripts.
169177

170-
**Windows caveat:** All data-only scripts should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter. Some Windows builds of Perl may not give any output until the script is finished when buffering is enabled.
178+
**Windows caveat:** All data-only scripts should have ``$|=1;`` among their first lines to disable the built-in buffering of the Perl interpreter. Windows builds of Perl may not give any output until the script is finished when buffering is enabled.
171179

172180
<a name="feeding-from-forms"></a>
173181
There is no special naming convention for non-interactive scripts. They can be called from hyperlinks or HTML forms using a full HTTP URL with the PEB pseudo-domain or a relative path. If a relative path is used, the PEB pseudo-domain will be added automatically. The following code is an example of a POST request to a local Perl script from an HTML form with no use of JavaScript:

REQUIREMENTS.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ If you are using the Qt Creator IDE, go to 'Projects' and disable the 'Shadow Bu
2626
## Runtime Requirements
2727
* Qt 5 libraries - their full Linux list can be found inside the ``start-peb.sh`` script,
2828
* Perl 5 distribution - any Linux, Mac or Windows Perl distribution.
29-
[Strawberry Perl](http://strawberryperl.com/) PortableZIP editions are successfully used with all Windows builds of PEB.
30-
[Perlbrew](https://perlbrew.pl/) Perl distributions (5.18.4, 5.23.7) are successfully used with many Linux builds of PEB.
29+
30+
Tested successfully using the following Perl distributions:
31+
Linux x64 [Perlbrew](https://perlbrew.pl/) Perl versions 5.18.4, 5.23.7
32+
Linux x64 [Relocatable Perl](https://github.com/skaji/relocatable-perl) version 5.24.1
33+
Windows x32 [Strawberry Perl](http://strawberryperl.com/) PortableZIP versions 5.12.2.0, 5.16.1.1, 5.20.2.1
34+
35+
To use a Perlbrew Perl with PEB create a symlink to the wanted Perl interpreter named:
36+
``{PEB_binary_directory}/perl/bin/perl``
37+
3138
PEB can also use any Perl on PATH.

resources/app/interactive-script.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<style type='text/css'>
2020
.output {
2121
font-size: 20px;
22+
margin-bottom: 20px;
2223
}
2324
</style>
2425
</head>
@@ -40,10 +41,7 @@
4041
</div>
4142

4243
<div id="script-one-output" class="output">
43-
<br>
44-
<br>
4544
</div>
46-
4745
</div>
4846
</form>
4947

@@ -63,10 +61,7 @@
6361
</div>
6462

6563
<div id="script-two-output" class="output">
66-
<br>
67-
<br>
6864
</div>
69-
7065
</div>
7166
</form>
7267

resources/app/perl/interactive-script.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
if (eval("require AnyEvent;")) {
99
AnyEvent->import();
1010
} else {
11-
print "AnyEvent module is missing in this Perl distribution.<br><br>";
11+
print "AnyEvent module is missing in this Perl distribution.";
1212
exit 0;
1313
}
1414

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int main(int argc, char **argv)
122122
// Basic application properties:
123123
// ==============================
124124
application.setApplicationName("Perl Executing Browser");
125-
application.setApplicationVersion("0.4.1");
125+
application.setApplicationVersion("0.4.2");
126126
bool startedAsRoot = false;
127127

128128
// ==============================

0 commit comments

Comments
 (0)