Merge pull request #7705 from dotCooCoo/fix/installed-script-runs-checked-text

Scripts: File › Scripts runs the text its check read, with includes from the checked folder
This commit is contained in:
BFlat
2026-11-15 11:38:16 +07:00
committed by GitHub
9 changed files with 132 additions and 24 deletions
+3
View File
@@ -2579,6 +2579,9 @@ The rest of this section is VectorCraft's own rules:
`The Scripts folder cannot be read`.
- A listed file is checked again when it is chosen. A file that is gone, is no longer a `.js` or `.jsx` file under
the folder, or is or lies behind a link ends with `the script is no longer in the Scripts folder`, and nothing runs.
The file is read once for that check, and the text that read checked is the text that runs; its `#include` lines
and `$.evalFile` read in the folder that read found. `script.run {path, installed: true}` runs a listed script the
same way.
- The web build has no Scripts folder, and neither has a run with `VECTORCRAFT_NO_PREFS` set.
`script.listInstalled {}` returns the same listing: `{folder, scripts: [{path, label, folders}], truncated,