• exec/install-xtrn.js

    From rswindell to CVS commit on Thu Mar 26 02:55:22 2020
    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 Sat Mar 28 23:16:31 2020
    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 Sun Mar 29 16:47:10 2020
    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 Sun Apr 5 20:34:47 2020
    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 Wed Apr 15 18:56:05 2020
    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 Thu Apr 16 15:17:41 2020
    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 Thu Apr 16 22:10:24 2020
    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 Thu Apr 16 23:41:11 2020
    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 Fri Apr 17 00:11:51 2020
    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 Fri Apr 17 14:41:35 2020
    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 Sat Apr 18 19:09:02 2020
    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 Fri Apr 24 20:17:04 2020
    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 Sat Apr 25 23:58:46 2020
    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 Mon Sep 7 20:25:25 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/6ca89ae2b71d04793b14018a
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    If an external program section name exactly matches one of the categories ("Cats" list) make it a simple confirmation to choose it as the install location.
  • From Rob Swindell to Git commit to sbbs/master on Tue Sep 8 00:37:35 2020
    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 Tue Sep 8 23:04:10 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/28848a37ded0a7126b9b44e1
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Catch and report exceptions thrown when calling eval() on .ini values.
  • From Rob Swindell to Git commit to sbbs/master on Fri Sep 11 22:04:46 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/be4a88fa5640837b38c80c3a
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    When not using -auto, prompt for which xtrn/*/install-xtrn.ini file to install
  • From Rob Swindell to Git commit to sbbs/master on Sat Sep 12 12:33:59 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/dcd3a7b91c2cf32b77414db3
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Fix bug in previous commit to this file
    find_startup_dir() returns an index, not a bool.
  • From Rob Swindell to Git commit to sbbs/master on Sun Sep 13 03:17:34 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/b6b4ee1d054f0b164ab194dc
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Fix the startup dir comparison (excluding already-installed doors).
  • From Rob Swindell to Git commit to sbbs/master on Sun Sep 20 12:19:02 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/1a0292caa57bd58d9d09b2e5
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Allow additional installation target categories/sections per program
  • From Rob Swindell to Git commit to sbbs/master on Sun Sep 20 19:19:26 2020
    https://gitlab.synchro.net/sbbs/sbbs/-/commit/dfe280023b96e77a9a125826
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Prioritize the order of install-target categories from the install-xtrn.ini
  • From Rob Swindell to Git commit to main/sbbs/master on Mon Dec 7 21:26:22 2020
    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 Thu Jan 14 22:11:41 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/051daaed6dc76f127f5125d6
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Update install-xtrn.js, make it apparent that debug mode does not install the door. Also do not recycle in debug mode (nothing was installed).
  • From Rob Swindell to Git commit to main/sbbs/master on Thu Jan 14 22:11:41 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/c8d1940e94107d2fc4eb18c0
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Merge branch 'mlong/installxtrndebug' into 'master'

    Update install-xtrn.js, make it apparent that debug mode does not install the...

    See merge request main/sbbs!76
  • From Rob Swindell to Git commit to main/sbbs/master on Mon Jan 16 20:41:25 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/741f1e32a749e4f73d816a61
    Modified Files:
    exec/install-xtrn.js
    Log Message:
    Updated to use cfglib.js for SBBS v3.20+ compatibility

    Fixes issue #473