Repository navigation
Releases
Releases · angelscript-tools/angelscript-cli
v1.6.1
Added
- The Windows setup has a "Previous installations" page: it lists earlier setups of this program and any folder in
PATHwith anasc.exeorangelscript.exe, and removes the ones left checked before installing, so no older copy hides the new one. install.ps1registers the install under Settings > Apps with anuninstall.ps1in the install folder, warns when another copy inPATHwould hide the new one, and removes those copies with-RemoveOthersorANGELSCRIPT_CLI_REMOVE_OTHERS=1.
Changed
--helpgroups the options into Run options, Ahead-of-time, Debugging, API stub and General, with the descriptions in one column. A usage error prints the message and a pointer to--help; running with no arguments prints the whole help.- CI also runs on pushes to
develop. - The READMEs show the install commands and the
launch.json,as.jsonandaddon.jsonexamples as separate indented code blocks.
Full Changelog: v1.6.0...v1.6.1
v1.6.0
Added
--dump-predefined --format[=<path>]lays out the generated.as.predefinedstub using the nearest.clang-formator a style file supplied on the command line.
Changed
- Updated
angelscript-api-dumpertov0.2.0for configurable stub layout.
Full Changelog: v1.5.0...v1.6.0
v1.4.1
Fixed
- The Linux builds with the JIT failed because the JIT 0.3.1 sources lacked
<cstdint>. The JIT submodule moves to v0.3.2, which also builds the 32-bit AOT target.
Full Changelog: v1.4.0...v1.4.1
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
v1.3.0
Added
- JIT builds from AngelScript 2.33 (before: 2.37) through the version 1 JIT interface of angelscript-jit; the installers, the engine build plan and CMake gate on 2.33. The test suite passes with the JIT on 2.33.0 (25 tests) and 2.36.1 (26 tests).
--aot-export BASEwritesBASE.candBASE.externsfor the script (the C that the JIT would compile, for ahead-of-time compilation with clang or gcc), and--aot BASEloads the shared library built from it, so a program starts with native code and no JIT compile. Builds with the angelsea JIT only; the example in the README shows the compile step. A library built for another AngelScript release or from another version of the script is skipped, not trusted.
Full Changelog: v1.2.2...v1.3.0
v1.2.2
Fixed
scripts/install.shasked for the x64 build on a 32-bit system running under a 64-bit kernel, because it read the architecture fromuname -m. It now detects a 32-bit userland, and--arch x64|x86|arm64(orANGELSCRIPT_CLI_ARCH) chooses the build by hand. The offline installer test of the Linux x86 CI job failed for this reason.
Full Changelog: v1.2.1...v1.2.2
v1.1.0
Added
- Build against official AngelScript releases from 2.20 to 2.39 (
scripts/build-engine.py) and publish a build for each supported engine with every release. ENGINE_VERSIONS.md lists what each version supports. - Optional angelsea JIT: build with
-DANGELSCRIPT_CLI_JIT=angelsea(AngelScript 2.37 or later, x86-64 or arm64).angelscript --versionreportsjit: angelsea;--no-jitand debugger sessions keep the interpreter. TheJITworkflow builds and tests it without blocking CI. - The Windows setup program has one checkbox per AngelScript release, so each
angelscript-<version>can be installed on its own. - Windows x86 and Linux x86 builds: archives, a Windows setup program and a Debian package for each, plus an engine build for every supported release.
- Support section in the README and a contributing guide in English and Spanish.
Changed
- The engine fixes, SHA-256 pins and version matrix moved to angelscript-engine (
external/angelscript-engine). The engine builds run in their own workflow (engine-builds.yml) after a release is published and attach their assets to it, so a failing engine build no longer blocks the release. - The debugger core now comes from the angelscript-dap submodule (
external/angelscript-dap). - Spanish README and third-party notices moved to
docs/.
Fixed
- Builds on Linux arm64: C++-only flags no longer reach the assembly sources.
- Builds on macOS with the older engine releases: the clashing assembly labels are renamed in the extracted copy of the engine.
- The CI built the engine releases only for macOS x64 (a matrix
includeoverwrote the other targets), so the Windows setup had no engine builds to bundle; every engine now builds on all seven targets and the CI runs each one on a sample script. - The CLI links Winsock on Windows, so engine releases without a debugger (before 2.36) build there.
- AngelScript 2.30.2 and earlier link on 64-bit Windows: the MASM call-convention file is added to the engine build.
- Engine releases without native calls on arm64 (2.33 and earlier, and 2.35 and 2.36 on macOS) build in the engine's portable mode; add-ons that have no portable registration are left out of those builds.
- AngelScript 2.35.1 builds with Clang (macOS, Linux with clang); the extracted copy takes the Clang branch that 2.36.0 added to
WRAP_MFN_PR. - AngelScript 2.22.0 to 2.22.2, 2.23.0, 2.26.0 and 2.26.1 no longer return wrong float results on Linux x64: their call-convention source is taken from the next point release.
Full Changelog: v1.0.0...v1.1.0
v1.0.0
First release.
Added
- The
angelscriptcommand, also available asascandangelscript-cli, runs AngelScript 2.39 scripts with arguments, relative includes and a compile-only mode. - Standard library add-ons, the print, println and getArgs functions, and TCP sockets:
tcpConnect,tcpListen,TcpSocketandTcpListener. - Runnable examples in
examples/for files, folders, strings, dates, exit codes and TCP, covered by the test suite. - Debug Adapter Protocol sessions for VS Code.
- A setup program for Windows (Inno Setup, with an optional PATH entry and an uninstaller), a
.pkgfor macOS and a.debfor Linux, built on every release and listed inSHA256SUMS. - Windows x64, Linux x64 and arm64, and macOS x64 and arm64 archives with SHA-256 checksums, and PowerShell and POSIX shell installers with offline installation and uninstall.
THIRD_PARTY_NOTICES.mdwith the licenses of AngelScript, the debugger core (angelscript-dap), cppdap and nlohmann/json, included in every package.- English and Spanish READMEs with terminal demonstrations and step-by-step installation screenshots.
- The release is created automatically when the version in
CMakeLists.txthas no tag yet. - The CLI builds against official AngelScript releases from angelcode.com, not only the bundled 2.39.0.
scripts/engine-matrix.pydownloads each release, checks its pinned SHA-256, builds and tests it; three one-line compatibility fixes are applied to the extracted copy only.docs/ENGINE_VERSIONS.mdlists all 43 releases from 2.20.0, and all of them build: full support from 2.36.0 with the debugger, run and check for the releases that pass every test, and the rest partial with their causes. - The installers take
--engine X.Y.Z(-Engineon Windows, orANGELSCRIPT_ENGINE_VERSION) to install a build against another release side by side asangelscript-X.Y.Z.scripts/build-engine.pybuilds any official release from source. CI builds and packages 2.38.0, 2.37.0, 2.36.1, 2.35.1, 2.33.0 and 2.30.2 for every platform on main, and the release attaches them. The Windows setup program offers those builds on a components page, built from the CI artifacts (package-installer.ps1 -EngineDir). examples/angelscript-cli.as.predefinedandexamples/angelscript.rules.jsonmake AngelLSP check the examples with no unknown names. The README adds an animated terminal capture and a plain Command Prompt capture.- The Debug Adapter Protocol core comes from the angelscript-dap repository (a submodule), shared with the example project and the asdebugger Sven Co-op plugin. The assembly sources of the arm64 call convention no longer receive the C++ compatibility flags, and engine releases before 2.39 get their global asm labels prefixed in the extracted copy so they build on Clang.
- 2.22.0 to 2.22.2, 2.23.0, 2.26.0 and 2.26.1 return wrong float results or crash on Linux x64 in their own
as_callfunc_x64_gcc.cpp. The extracted copy takes that file (andas_callfunc.hfor 2.22) from the next point release, so 2.23.0, 2.26.0 and 2.26.1 now pass every test; the 2.22 releases and the rest of the partial list (2.20.x, 2.21.0, 2.31.0) stay documented with their causes. CONTRIBUTING.mdwith a Spanish version, a Support section and a list of related projects in the READMEs. The Spanish README, the third-party notices and the roadmap live indocs/.angelscript --dump-predefinedprints every type and function a script sees as an.as.predefinedstub, for the engine the binary was built with (2.39.0 or later).