Detect the Chinese finish screen by its title in the harness

This commit is contained in:
ZacharyZhang-NY committed 2026-10-06 20:00:59 -04:00
1 parent db8615e5ff
commit 0d8d95a340
1 file changed
+2 -1
+2 -1
View File
@@ -828,7 +828,8 @@ wait_for_install() {
while true; do
text=$(ocr_screen)
if grep -qi "$(region_text "Reboot Now" "立即重启")" <<<"$text"; then
# OCR cannot read the Chinese reboot button, so China matches the title above it.
if grep -qi "$(region_text "Reboot Now" "安装完成")" <<<"$text"; then
log "Install finished. Confirming the reboot prompt."
capture_console "success-installer-15-reboot"
press ret