-
exec/install-xtrn.js
From
rswindell to
CVS commit on Thursday, March 26, 2020 02:55:22
exec install-xtrn.js NONE 1.1
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv11197
Added Files:
install-xtrn.js
Log Message:
A new script for install external programs (doors, events, editors). The script itself contains the current documentation for developers to make use
of it and make it super easy for sysops to install their programs into their Synchronet systems.
-
From
rswindell to
CVS commit on Saturday, March 28, 2020 23:16:31
exec install-xtrn.js 1.1 1.2
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv30971
Modified Files:
install-xtrn.js
Log Message:
Now supports a -overwrite cmdline option which can be used to allow the overwrite of existing items (i.e. programs with the same internal code).
Add support for [exec:<file>.js] sections: for executing another JavaScript files as part of the install.
Add support for [eval:string] sections: for evaluating a JavaScript expression as part of an install.
Add support for an optional "prompt" key for each item. If set to a string, overrides the default confirmation prompt text. If set to false, disables
the confirmation prompt for that item.
-
From
rswindell to
CVS commit on Sunday, March 29, 2020 16:47:10
exec install-xtrn.js 1.2 1.3
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv31330
Modified Files:
install-xtrn.js
Log Message:
Use the JS-standard method of passing a variable number of arguments to a function (using function.apply()) rather than depending on the js.exec() array-args-expansion feature I recently added and then just removed.
-
From
rswindell to
CVS commit on Sunday, April 05, 2020 20:34:47
exec install-xtrn.js 1.3 1.4
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv26240
Modified Files:
install-xtrn.js
Log Message:
Support the new "exec" section syntax (arguments in the section).
Support the new "-auto" command-line option to automatically scan xtrn/* for uninstalled install-xtrn.ini files.
I intend to have this a stock Operater extenral program so the sysop can just cvs-update or download an extract to extern and then run the external program (with the -auto option) to automatically find and install the program.
-
From
rswindell to
CVS commit on Wednesday, April 15, 2020 18:56:05
exec install-xtrn.js 1.4 1.5
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv26119
Modified Files:
install-xtrn.js
Log Message:
Support "requires_service" key which specifies the name of a service (e.g. "JSON") that must be installed and enabled for the external program to be installed. This is inteded for use by the various .js "doors" that rely on json-service.js to function. If the specified service isn't installed and enabled, the install won't continue.
-
From
rswindell to
CVS commit on Thursday, April 16, 2020 15:17:41
exec install-xtrn.js 1.5 1.6
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv27560
Modified Files:
install-xtrn.js
Log Message:
Support a root-level "info" key which describes the over-all program/package being installed (free-form text, up to 79 chars for pretty-print).
Remove the "requires_service" key, replaced with:
Add ability to install/update services.
Add ability to add/update sections in .ini files with eval()'d key values.
This allows the json-service dependant scripts to (mostly) be installable
under all scenarios. tw2.js is still an exception.
-
From
rswindell to
CVS commit on Thursday, April 16, 2020 22:10:24
exec install-xtrn.js 1.6 1.7
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv29137
Modified Files:
install-xtrn.js
Log Message:
Fix typo on "exec:" install item handler: ReferenceError: items is not defined
-
From
rswindell to
CVS commit on Thursday, April 16, 2020 23:41:11
exec install-xtrn.js 1.7 1.8
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv14764
Modified Files:
install-xtrn.js
Log Message:
Break the 'info' key into multiple keys:
- Name (name of the program)
- Desc (description)
- From (the 'By' line for author/programmer/publisher)
- Cats (comma-separated list of applicable categories (e.g. "Games")
- Subs (comma-separated list of applicable sub-categories (e.g. "Adventure")
- Inst (Installer .ini file source/revision/author/date info)
-
From
rswindell to
CVS commit on Friday, April 17, 2020 00:11:51
exec install-xtrn.js 1.8 1.9
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv19656
Modified Files:
install-xtrn.js
Log Message:
Renamed the programmer/author/publisher key "from" -> "by"
Inherit the "name" value from the root section in the install item sections.
-
From
rswindell to
CVS commit on Friday, April 17, 2020 14:41:35
exec install-xtrn.js 1.9 1.10
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv29847
Modified Files:
install-xtrn.js
Log Message:
'by' is an array not a scalar.
Request sbbs recycle after completing install(s).
-
From
rswindell to
CVS commit on Saturday, April 18, 2020 19:09:02
exec install-xtrn.js 1.10 1.11
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv2728
Modified Files:
install-xtrn.js
Log Message:
Use full path for read/write .cnf files so that the cwd doesn't matter (in theory at least) and "jsexec -C" could be used to execute this script. Maybe.
-
From
rswindell to
CVS commit on Friday, April 24, 2020 20:17:04
exec install-xtrn.js 1.12 1.13
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv20825
Modified Files:
install-xtrn.js
Log Message:
Insure the startup_dir ends in a slash/backslash. This is especially important for the json-service.ini "dir" key. The code that parses that value is not
very tolerant of the absence of a trailing slash.
-
From
rswindell to
CVS commit on Saturday, April 25, 2020 23:58:46
exec install-xtrn.js 1.13 1.14
Update of /cvsroot/sbbs/exec
In directory cvs:/tmp/cvs-serv24728
Modified Files:
install-xtrn.js
Log Message:
Use relative paths for xtrn startup_dir directories. And forward-slashes.
This makes the config files more portable/migratable.
-
From
Rob Swindell to
Git commit to sbbs/master on Monday, September 07, 2020 20:25:25
-
From
Rob Swindell to
Git commit to sbbs/master on Tuesday, September 08, 2020 00:37:35
https://gitlab.synchro.net/sbbs/sbbs/-/commit/2fd20c3ecec5e8ac6be66087
Modified Files:
exec/install-xtrn.js
Log Message:
Process "ini" sections before "service" sections.
Allow a section to stop the install process by setting done=true
or be the last of its install-type by setting last=true.
These changes allow us to prompt whether to use remote JSON-db servers
(e.g. bbs.electronicchicken.com) or to install/enable the JSON-db
service locally, based on the sysop's choice.
-
From
Rob Swindell to
Git commit to sbbs/master on Tuesday, September 08, 2020 23:04:10
-
From
Rob Swindell to
Git commit to sbbs/master on Friday, September 11, 2020 22:04:46
-
From
Rob Swindell to
Git commit to sbbs/master on Saturday, September 12, 2020 12:33:59
-
From
Rob Swindell to
Git commit to sbbs/master on Sunday, September 13, 2020 03:17:34
-
From
Rob Swindell to
Git commit to sbbs/master on Sunday, September 20, 2020 12:19:02
-
From
Rob Swindell to
Git commit to sbbs/master on Sunday, September 20, 2020 19:19:26
-
From
Rob Swindell to
Git commit to main/sbbs/master on Monday, December 07, 2020 21:26:22
https://gitlab.synchro.net/main/sbbs/-/commit/bda6ea968ff7c7111c652fb5
Modified Files:
exec/install-xtrn.js
Log Message:
Support 2 new section types: pre-exec and pre-eval
Just like the exec and eval sections, except executed/evaluated *before*
any external programs are installed.
New optional 'fail' key to specify a custom failure message.
Example:
[pre-eval:file_exists(startup_dir + 'test.txt')]
prompt = false
required = true
fail = You must create text.txt before you can install.
-
From
Michael Long to
Git commit to main/sbbs/master on Thursday, January 14, 2021 22:11:41
-
From
Rob Swindell to
Git commit to main/sbbs/master on Thursday, January 14, 2021 22:11:41
-
From
Rob Swindell to
Git commit to main/sbbs/master on Monday, January 16, 2023 20:41:25