Files
Henloader-12.52/BUILD_INSTRUCTIONS.md

58 lines
1.5 KiB
Markdown

# Building HenLoader on Debian
## Prerequisites
Install the required build tools and libraries:
```bash
sudo apt update
sudo apt install -y build-essential make pkg-config libbsd-dev
```
## JDK Packages
The Makefile expects JDK 8 and JDK 11 packages in the `thirdparty/` directory with specific filenames.
The exact versions specified in the Makefile may not be available, but compatible versions can be downloaded and renamed.
### For x86_64 (amd64):
The packages should be named:
- `OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz`
- `OpenJDK11U-jdk_x64_linux_hotspot_11.0.28_6.tar.gz`
You can download compatible versions and rename them, or use these commands:
```bash
cd thirdparty
wget -O OpenJDK8U-jdk_x64_linux_hotspot_8u462b08.tar.gz \
"https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u472-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u472b08.tar.gz"
wget -O OpenJDK11U-jdk_x64_linux_hotspot_11.0.28_6.tar.gz \
"https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.29%2B7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.29_7.tar.gz"
```
### For aarch64 (ARM64):
Similar approach - download compatible versions and rename to match the Makefile's expected filenames.
## Building
Simply run:
```bash
make
```
This will:
1. Extract JDK 8 from the tarball
2. Build the makefs tool
3. Compile the Java sources
4. Sign the JAR files
5. Assemble the Blu-ray disc structure
6. Create the final ISO: `build/henloader.iso`
## Cleaning
To clean build artifacts:
```bash
make clean
```