Skip to content

v1.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 22:15

Added

  • Native addons: --addon <name|path> (repeatable) loads a shared library that registers types and functions on the script engine, so scripts can use a graphics library or any other native code without a C++ project of their own. The contract is include/angelscript-cli/addon.h (asc_addon_get_info, asc_addon_register, ABI number 1); the CLI refuses an addon built for another ABI or another AngelScript version and says why (exit code 2). A name is searched in ASC_ADDON_PATH, addons/ next to the executable, ../share/angelscript-cli/addons/ and ~/.angelscript/addons/. See docs/ADDONS.md.
  • angelscript addon show | install | remove (plugin is a synonym). install takes user/repo[@tag] (it downloads the release asset <repo>-as<engine>-<system>-<arch>.tar.gz with curl, checks its .sha256 and unpacks it with tar), a folder with addon.json, or a .tar.gz; --build clones and compiles the repository with git and cmake instead. The install is atomic and refuses a wrong ABI, a wrong AngelScript version or a missing library. show lists the folders searched, the one install writes to ($ASC_ADDON_HOME, else ~/.angelscript/addons) and each addon's version and compatibility.
  • A project's as.json (found next to the script or in a parent folder) lists "addons" to load, so a script runs with them from an editor's F5, which cannot pass --addon. --no-project ignores it.
  • --dump-predefined accepts --addon, before or after it, and prints the API of the loaded addons too, so AngelLSP can complete them. --only-addons prints only what the addons registered, to sit next to angelscript-cli.as.predefined without duplicates.
  • tests/addons/sample, a minimal addon built by the test suite, and integration cases for loading, searching by name, the dump, a wrong ABI, missing addons, and the whole addon install | show | remove cycle against a local file:// release tree (checksums, ABI, versions, a missing asset, local folders and archives, as.json). Unit tests cover SHA-256, the JSON reader, as.json discovery and repository specs.
  • scripts/check-submodule-pins.py fails when a submodule is pinned to a commit that is not a stable release tag (--report lists newer releases); CI runs it in a submodule-pins job.

Changed

  • The installers (install.ps1, install.sh) accept an addons/ folder in the install directory and keep it when they upgrade.
  • Submodules now sit on stable releases: angelscript-engine v0.1.2 (was v0.1.0) and angelscript-jit v0.3.0 (was v0.2.0 plus three commits).

Full Changelog: v1.3.0...v1.4.0