README in Russian

This commit is contained in:
paravis committed 2026-11-07 20:46:29 +03:00
1 parent c538f115f1
commit 8fb7b6b032
1 file changed
+35 -37
+35 -37
View File
@@ -1,64 +1,62 @@
# Change BootLoader — C++ port # Установщик загрузчика PARAVIS
Native Win32 port of `Change_bootloader\Change_bootloader.au3` with the same Нативная Win32-версия `Change_bootloader.au3` на C++. Окно, кнопки, действия и
window, buttons, actions and messages. сообщения те же, что в AutoIt-версии.
## Build ## Сборка
Requirements: Visual Studio 2022 (Desktop C++) and CMake 3.20+. Требования: Visual Studio 2022 (Desktop C++) и CMake 3.20+.
```bat ```bat
build.cmd build.cmd
``` ```
Output: Результат:
``` ```
build\Release\Change_BootLoader.exe build\Release\Change_BootLoader.exe
``` ```
The executable is 32-bit, uses a static CRT (no VC++ redistributable), and Программа 32-битная, использует статическую CRT (VC++ Redistributable не
requests administrator rights through the embedded manifest. нужен) и запрашивает права администратора через встроенный манифест.
## How it works ## Как работает
- The program must be started from the root of a PARAVIS flash drive, for - Запускать с корня флешки PARAVIS, например `F:\Change_BootLoader.exe`.
example `F:\Change_BootLoader.exe`. - Диск определяется по пути к самой программе; проверяются
- It derives the drive from its own path and checks for `\efi\Paravis\Boot\bootice.exe` и `\efi\Paravis\Boot\NOT.DEL`.
`\efi\Paravis\Boot\bootice.exe` and `\efi\Paravis\Boot\NOT.DEL`. - Если этих файлов нет, показывается исходное сообщение об ошибке и выход.
- If those files are missing, it shows the original error and exits. - Семь кнопок выполняют те же операции, что и AutoIt-версия:
- Seven buttons perform the same operations as the AutoIt version:
- Legacy BIOS: XorBoot, Bootmgr, Grub4Dos, Grub2 - Legacy BIOS: XorBoot, Bootmgr, Grub4Dos, Grub2
- UEFI: Bootmgr, Grub2, Xorboot - UEFI: Bootmgr, Grub2, Xorboot
- Bootice, xcopy and the GRUB2 MBR helper script are invoked exactly like - Bootice, xcopy и скрипт создания MBR для GRUB2 вызываются так же, как в
the AutoIt version. The helper script is AutoIt-версии. Скрипт:
`\efi\Paravis\Boot\grub2\bios\make-paravis-mbr.ps1`. `\efi\Paravis\Boot\grub2\bios\make-paravis-mbr.ps1`.
## Notes ## Примечания
- The UI matches the AutoIt version (376 × 208, same fonts, positions, - Интерфейс совпадает с AutoIt-версией (376×208, те же шрифты, позиции,
hover/pressed colors). цвета наведения и нажатия).
- Message boxes are native `MessageBoxW` dialogs with the same titles and - Диалоги — нативный `MessageBoxW` с теми же заголовками и текстами.
texts. - Отладочный лог по умолчанию выключен. `PARAVIS_DEBUG_LOG=1` включает
- The debug log is disabled by default. Set `PARAVIS_DEBUG_LOG=1` to write запись в `%TEMP%\cbl_cpp_debug.log`.
`%TEMP%\cbl_cpp_debug.log`. - Действие «GRUB2 Legacy» использует те же команды bootice `/sectors`, что и
- The GRUB2 Legacy action uses the same bootice `/sectors` commands as the AutoIt-версия. На виртуальных дисках bootice может показывать свои
AutoIt version. On some virtual disks bootice displays its own sector диалоги подтверждения; на реальной флешке PARAVIS поведение совпадает с
confirmation/error dialogs; on a real PARAVIS USB flash it behaves the оригиналом.
same as the original.
## Repository layout ## Структура репозитория
``` ```
src/ C++ sources and resources src/ исходники и ресурсы C++
legacy-au3/ original AutoIt script legacy-au3/ исходная версия на AutoIt
build.cmd release build build.cmd сборка релиза
``` ```
## License ## Лицензия
MIT. See [`LICENSE`](LICENSE). MIT, см. [`LICENSE`](LICENSE).
This repository contains source code only. Third-party binaries used at В репозитории только исходный код. Сторонние бинарники (`bootice.exe`,
runtime (`bootice.exe`, `xcopy`, `powershell.exe`) are not distributed here `xcopy`, `powershell.exe`) не распространяются и берутся из системы или из
and must be supplied by the system or by the PARAVIS flash image. образа флешки PARAVIS.