Install / AppImage

cmake --install build --prefix stage
# -> stage/bin/, stage/share/licenses/scarletnx/

AppImage: run inside pkgforge's Arch container with quick-sharun (CI setup), as Anylinux-AppImages makes them; its FAQ is the reference, not the official AppImage documentation:

cmake --preset default -B build/appimage -DSNX_DEPLOY=OFF -DCMAKE_INSTALL_PREFIX=/usr &&
cmake --build build/appimage &&
cmake --install build/appimage &&
GITHUB_REPOSITORY=scarletnx/ScarletNX scripts/make-appimage.sh
# -> dist/ScarletNX-linux-<arch>.AppImage

scarletnx is every driver the build has (src/multicall): each driver is a library with no main of its own, and the program, whichever drivers are on (SNX_BUILD_NX among them), runs the one its name says, so the recompiler, SDL and the code the drivers share are in it once. scarletnx-switch, scarletnx-3ds, scarletnx-vita, scarletnx-gnuabi, scarletnx-agb and scarletnx-nds are links to it on Linux and macOS, made in the build folder and installed. Windows, whose zips keep no links, installs scarletnx.exe alone, which takes a driver's name as its first argument (scarletnx.exe scarletnx-3ds ..., how the launcher runs them); its build folder has hard links of those names, for the tests. Android's and iOS's apps start the program their own way; Android's menu runs a driver as Windows' does, its name first, through libscarletnx-run.so.

Nightly AppImages, x86_64 and aarch64 · Launch.

A pull request's own builds are linked from a comment on it once CI has built them.

Licenses/credits · Architecture · Roadmap.


Made from docs/dev/build.md at 69237645142c. GPL-3.0-or-later.