Files
immortalwrt_image_builder/README.md
T
2026-06-27 11:13:23 +08:00

58 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ImmortalWrt Image Builder
这是一个用于快速构建 ImmortalWrt 固件的自动化项目,基于 ImmortalWrt 官方 Image Builder 生成 x86_64 平台固件。它适合用于定制个人或家庭网络环境中的 OpenWrt/ImmortalWrt 系统.
## 使用说明
#### x86-64 固件构建
```bash
curl -fsSL https://gitea.9001003.xyz/William/immortalwrt_image_builder/raw/branch/main/x86-64.sh | bash
```
构建完成后,固件文件会生成在 `output/` 目录中。
#### r2s 固件构建
```bash
curl -fsSL https://gitea.9001003.xyz/William/immortalwrt_image_builder/raw/branch/main/r2s.sh | bash
```
构建完成后,固件文件会生成在 `r2s_output/` 目录中。
## 其他问题
- 如何修改构建固件的版本?
`x86-64` 固件为例, 在 `main.sh` 中修改 `version` 变量:
```bash
version="25.12.0"
```
例如要构建其他版本,就把版本号改成 ImmortalWrt 官方下载站中存在的版本:
```bash
version="24.10.2"
```
保存后重新执行:
```bash
bash main.sh
```
脚本会根据该版本号下载对应的 x86-64 Image Builder
```text
https://downloads.immortalwrt.org/releases/<version>/targets/x86/64/
```
- 如何修改构建插件?
修改脚本代码中的 build()函数`PKG_LIST`变量
- 如何修改固件根分区大小
修改代码中的`rootfs_partsize`变量