SLeeLa IDE build scripts
Bash scripts that reproduce the "downloads"/build steps for the SLeeLa IDE. Run them from anywhere; each resolves the repo layout relative to its own location.
| Script | What it produces | Network? |
|---|---|---|
gen-gradle-wrapper.sh | sleela-intellij/gradle/wrapper/gradle-wrapper.jar (pinned to Gradle 9.8.0) | No |
build-native-compiler.sh | impl/build/sleela — the native compiler the IDE drives | No |
build-plugin.sh | sleela-intellij/build/distributions/sleela-intellij-<ver>.zip | Yes (IntelliJ SDK) |
build-all.sh | All of the above in order | Yes (step 3 only) |
common.sh | Shared helpers (JDK 21 discovery, gradle launcher) — sourced, not run | — |
Requirements
- JDK 21 — auto-detected (mise,
/usr/lib/jvm, macOS); or setJAVA_HOME. The IntelliJ Platform Gradle Plugin 2.x rejects JDK 25+, so 21 is required. - gcc / g++ / make / python3 — for the native compiler.
- A system
gradle— only needed bygen-gradle-wrapper.shto mint the jar. - Network — only
build-plugin.shneeds it (downloads the IC 2026.1 SDK, Kotlin, and the IntelliJ Platform Gradle Plugin from JetBrains + Maven Central).
Quick start
cd ide/scripts
# Offline-buildable pieces (wrapper jar + native compiler):
SKIP_PLUGIN=1 ./build-all.sh
# Everything, including the installable plugin ZIP (needs network):
./build-all.sh
Notes
gen-gradle-wrapper.shis idempotent; setFORCE=1to regenerate the jar.build-native-compiler.shdefaults the mandatory SHA-256 verify gate tosecurity/sha256-manifest.json; override withSLEELA_SHA256_MANIFEST. Passallas an argument to also build Nordshrift and the staged package.build-plugin.shaccepts a Gradle task:build,runIde,verifyPlugin, orbuildPlugin(default).- The IDE auto-discovers the compiler at
impl/build/sleela; override its location with theSLEELA_COMPILERenvironment variable.