Repository navigation
Extempore installs with one command, into a conventional layout. On macOS or
Linux:
curl -fsSL https://extemporelang.github.io/install.sh | shOn Windows, in PowerShell:
irm https://extemporelang.github.io/install.ps1 | iexThese install the latest release in ~/.local/share/extempore (macOS, Linux) or
%LOCALAPPDATA%\Programs\Extempore (Windows), and put extempore on your
PATH. Neither needs administrator rights, both check the download against the
release's new SHA256SUMS, and running either again upgrades. The VS Code
extension's Extempore: Install Extempore command (extension v0.4.0) installs
to the same place. macOS doesn't quarantine what these three download; a zip
downloaded in a browser still needs the xattr command in the README.
The release archives, and cmake --install, lay out bin/extempore,
share/extempore/ (runtime/, libs/, examples/, assets/) and
lib/extempore/ (the AOT cache and platform shared libraries), so
cmake --install build --prefix ~/.local (or /usr/local) works as it does for
other software. The tree can still be moved anywhere.
An installed tree needn't be writable: AOT compilation writes to a per-user
cache, ~/.cache/extempore/<version> on Linux,
~/Library/Caches/extempore/<version> on macOS,
%LOCALAPPDATA%\extempore\<version> on Windows, or $EXTEMPORE_CACHE_DIR if
it's set. A library compiled there is loaded in place of the installed copy.
The Windows archive carries the Visual C++ runtime DLLs beside extempore.exe,
so it no longer needs the Visual C++ Redistributable installed.
(sys:extempore-version) gives the version as a string, such as "v0.13.0",
and extempore --version prints it as extempore version does.
Upgrading
- An unzipped release runs
bin/extempore, where it used to run./extempore
at the top of the folder. Update any script or shortcut which runs it. - A VS Code
extempore.executablesetting which points into an old unzipped
folder keeps running that old version. Clear it to run the installed
Extempore; Extempore: Install Extempore offers to. sys:build-dirandsys:build-pathare gone, with no alias, so code which
calls them fails with an unbound variable. Use(sys:lib-dir)or
(sys:cache-dir), and(sys:lib-path path). To find an AOT-compiled file,
(sys:aot-cache-path name)looks in the per-user cache, then the installed
one.- Libraries you AOT-compiled into an old release's
libs/aot-cachedon't carry
over: compile them again, and they go to the per-user cache. That cache is per
version, so the same goes for each upgrade.