面向 **Nikon Z30 C 1.20** 的图形界面构建程序,Windows 上无需安装 Python 或输入命令。English below.
## 本版本变化
- **新增竖拍显示(`portrait-ui`,包含在 `full` 中):** 竖拿相机时,照片取景信息改为竖版:顶部两行,底部快门速度、光圈、ISO 排成一行,左右栏移到竖屏中部;四角对焦框保持原位。转动后不用半按快门,图标和文字会自动补全,从相机识别出新方向算起约 0.3–0.5 秒。默认关闭,在 **自定义菜单 → 竖拍显示** 或照片拍摄菜单末尾的直达行打开。
- **仍为横版:** i 菜单和它打开的设置页、竖拿时从取景页触摸打开的设置页、直方图、菜单、回放、视频模式、HDMI 输出。详见 [竖拍显示文档](https://github.com/WonderLantern/wonder-lantern-z30/blob/v0.4.0/docs/portrait-ui.md)。
- **构建检查:** 汇编器现在会拒绝跳不到目标的 `cbz`/`cbnz`。此前 Keystone 遇到这种情况不报错,会生成错误的跳转。
## 使用方法
1. 下载 `WonderLanternZ30-windows-x64.zip` 并**完整解压**。
2. 自行准备未经修改的 `Z_30_0120.bin`,放进解压后的文件夹,或在程序里选择。发布包不含 Nikon 固件。
3. 打开 `WonderLanternZ30.exe`,等待校验通过,勾选功能后点击“开始构建”。
4. 到 `output` 文件夹取 `EG209020.BIN`。它是独立 EG 模块,不是完整 Nikon 更新包。
## 请先了解
- **实验性固件修改:** 风险自负。刷入前请保留原厂 `Z_30_0120.bin`,并确认会通过 **设定菜单 → 固件版本** 重新升级,这是刷回原厂固件的途径。各功能的验证范围见 [README](https://github.com/WonderLantern/wonder-lantern-z30/blob/v0.4.0/README.md#验证状态)。
- **测试范围:** 本程序构建的 `full` 与已在相机上测试的固件逐字节相同。实机已确认:竖拍菜单页只有 OFF/ON;横竖转动后会自动补全;固件版本页可以正常打开。
- QEMU 中检查了竖拍转动、简中/英文/繁中三种语言的固件版本页和语言页、照片和视频菜单的直达行,以及日期水印、画幅、斑马纹菜单。
- 2047 种功能组合已离线比对:程序在不含 Keystone 的条件下构建每个组合,结果都与命令行逐字节一致。
- 尚未在没有安装 Python 的另一台电脑上测试。
- **Wi-Fi:** `full` 包含 `wifi-5ghz`。它可能影响 2.4 GHz 第 12、13 信道的网络,有效信道与功率需适合使用地点;不需要时取消 `full`,单独勾选其他功能。
- **未签名:** Windows SmartScreen 可能提示风险。
## 校验
`WonderLanternZ30-windows-x64.zip` SHA-256:
`4a58327649117bded4103a24d29ba7b2530be161078e1491974307541c6d96cb`
使用 `Z_30_0120.bin` 构建 `full`,默认产物的 SHA-256 应为:
`34f97439fb4392d6cedf5afb135bf37bea455d7748a33e455c70f8792008f1f9`
## 许可证
程序不包含 Keystone,只附带预先汇编的机器码。各组件许可证见程序文件夹内的 `licenses`;对应源码见本标签。本项目独立于 Nikon,未获其支持或认可。
---
## English
A graphical builder for the **Nikon Z30 C 1.20**. On Windows it needs no Python or commands.
What changed:
- **New portrait layout (`portrait-ui`, included in `full`):** when the camera is held upright, the photo live-view info switches to a portrait layout. The top info is in two rows, shutter speed, aperture and ISO share one row at the bottom, and the side columns move to the middle; the AF corner frame stays in place. After a turn the icons and text fill in on their own, without a half press, about 0.3–0.5 s after the camera reports the new orientation. Off by default; turn it on under **Custom menu → Portrait UI** or from the direct row at the end of the photo shooting menu.
- **Still landscape:** the i menu and the pages it opens, setting pages opened by touch from live view while upright, the histogram, menus, playback, movie mode and HDMI output. See the [portrait UI document](https://github.com/WonderLantern/wonder-lantern-z30/blob/v0.4.0/docs/portrait-ui.md) (Chinese).
- **Build check:** the assembler now refuses a `cbz`/`cbnz` that cannot reach its label; Keystone used to emit a wrong branch without an error.
1. Download `WonderLanternZ30-windows-x64.zip` and **extract the whole archive**.
2. Supply your own unmodified `Z_30_0120.bin`; the package contains no Nikon firmware.
3. Open `WonderLanternZ30.exe`, wait for the check to pass, tick features and click Build.
4. Find `EG209020.BIN` in the `output` folder. It is a standalone EG module, not a full Nikon update package.
This is an experimental firmware modification; use it at your own risk. Before flashing, keep the stock `Z_30_0120.bin` and make sure you can update again from **Setup menu → Firmware version**, which is the way back to stock firmware.
Test coverage:
- The `full` build from this app is byte-identical to firmware tested on a camera, where the portrait page showing only OFF/ON, the automatic fill-in after turns and the Firmware version page were confirmed.
- In QEMU: portrait turns; the Firmware version and Language pages in Simplified Chinese, English and Traditional Chinese; the direct rows in the photo and movie menus; and the date stamp, aspect and zebra menus.
- 2047 feature combinations were compared offline: the app builds each one without Keystone, byte-identical to the command line.
- The app has not been tested on a second PC without Python.
`full` includes `wifi-5ghz`, which may affect 2.4 GHz channel 12/13 networks; channels and power must suit your location. The app is unsigned, so SmartScreen may warn. Checksums are listed above. Licence texts are in the `licenses` folder. This project is independent of Nikon and is not supported or endorsed by it.