From d4b22a7fd6597aeb468fd0ddf05f50d0a539cbb7 Mon Sep 17 00:00:00 2001 From: Marcus Huderle Date: Wed, 4 Mar 2026 18:14:37 -0600 Subject: [PATCH] jq is a dependency right now --- INSTALL.md | 2 +- tools/scripts/generate_graphics_rules.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index bcf005c..305bbd2 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -10,7 +10,7 @@ The [prerelease version of the Linux subsystem](https://docs.microsoft.com/windows/wsl/install-legacy) available in the 1607 and 1703 releases of Windows 10 is obsolete so consider uninstalling it. -Make sure that the `build-essential`, `git`, and `libpng-dev` packages are installed. The `build-essential` package includes the `make`, `gcc-core`, and `g++` packages so they do not have to be obtained separately. MSYS2 does not include `libpng-dev` so it must be built from source. +Make sure that the `build-essential`, `git`, `jq`, and `libpng-dev` packages are installed. The `build-essential` package includes the `make`, `gcc-core`, and `g++` packages so they do not have to be obtained separately. MSYS2 does not include `libpng-dev` so it must be built from source. Install the **devkitARM** toolchain of [devkitPro](https://devkitpro.org/wiki/Getting_Started) and add its environment variables. For Windows versions without the Linux subsystem, the devkitPro [graphical installer](https://github.com/devkitPro/installer/releases) includes a preconfigured MSYS2 environment, thus the steps below are not required. diff --git a/tools/scripts/generate_graphics_rules.sh b/tools/scripts/generate_graphics_rules.sh index 64aa280..054e372 100755 --- a/tools/scripts/generate_graphics_rules.sh +++ b/tools/scripts/generate_graphics_rules.sh @@ -11,6 +11,11 @@ set -euo pipefail +if ! command -v jq >/dev/null 2>&1; then + echo "error: 'jq' is required to build graphics rules but was not found. Install it with: sudo apt install jq" >&2 + exit 1 +fi + emit_rules() { local json="$1" local dir