Repository navigation
v1.4.0
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 isinclude/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 inASC_ADDON_PATH,addons/next to the executable,../share/angelscript-cli/addons/and~/.angelscript/addons/. Seedocs/ADDONS.md. angelscript addon show | install | remove(pluginis a synonym).installtakesuser/repo[@tag](it downloads the release asset<repo>-as<engine>-<system>-<arch>.tar.gzwithcurl, checks its.sha256and unpacks it withtar), a folder withaddon.json, or a.tar.gz;--buildclones and compiles the repository withgitandcmakeinstead. The install is atomic and refuses a wrong ABI, a wrong AngelScript version or a missing library.showlists the folders searched, the oneinstallwrites 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-projectignores it. --dump-predefinedaccepts--addon, before or after it, and prints the API of the loaded addons too, so AngelLSP can complete them.--only-addonsprints only what the addons registered, to sit next toangelscript-cli.as.predefinedwithout 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 wholeaddon install | show | removecycle against a localfile://release tree (checksums, ABI, versions, a missing asset, local folders and archives,as.json). Unit tests cover SHA-256, the JSON reader,as.jsondiscovery and repository specs.scripts/check-submodule-pins.pyfails when a submodule is pinned to a commit that is not a stable release tag (--reportlists newer releases); CI runs it in asubmodule-pinsjob.
Changed
- The installers (
install.ps1,install.sh) accept anaddons/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