From ee03770764c71fa33163830d66bf5f48f3f76e26 Mon Sep 17 00:00:00 2001 From: 283375 Date: Sat, 23 Mar 2024 18:21:48 +0800 Subject: [PATCH] chore: update README --- README.md | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a06a1da..2d532bf 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,27 @@ # Arcaea Offline PySide UI -GUI for both [283375/arcaea-offline](https://github.com/283375/arcaea-offline) and [283375/arcaea-offline-ocr](https://github.com/283375/arcaea-offline-ocr) +GUI for both [283375/arcaea-offline](https://github.com/283375/arcaea-offline) and [ArcaeaOffline/core-ocr](https://github.com/ArcaeaOffline/core-ocr). -## Before you run `python index.py`... +## Prerequisites * Install requirements * Release translation files from `ui/resources/lang/*.ts` +* Run `prebuild.py` * Compile `ui/resources/resources.qrc` to `ui/resources/resources_rc.py` + +You can refer to the [GitHub Actions file](./.github/workflows/build.yml) for a rough reference. + +``` +pip install -r ./requirements.txt +pyside6-lrelease ./ui/resources/lang/en_US.ts ./ui/resources/lang/zh_CN.ts +python prebuild.py +pyside6-rcc ./ui/resources/resources.qrc -o ./ui/resources/resources_rc.py +``` + +Sometimes you have to install the latest, unpublished version of `arcaea-offline` and `arcaea-offline-ocr`. + +``` +pip uninstall -y arcaea-offline arcaea-offline-ocr +pip install git+https://github.com/283375/arcaea-offline +pip install git+https://github.com/ArcaeaOffline/core-ocr +```