Skip to content

Commit

Permalink
chore: 去掉base目录以免一些不必要的麻烦(
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Sep 27, 2024
1 parent 803bba7 commit 59c13cb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ jobs:
- name: Check Resource
run: |
python ./check_resource.py ./assets/resource/base/
python ./check_resource.py ./assets/resource/
6 changes: 3 additions & 3 deletions assets/interface.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
{
"name": "官服",
"path": [
"{PROJECT_DIR}/resource/base"
"{PROJECT_DIR}/resource"
]
},
{
"name": "B 服",
"path": [
"{PROJECT_DIR}/resource/base",
"{PROJECT_DIR}/resource/bilibili"
"{PROJECT_DIR}/resource",
"{PROJECT_DIR}/resource_bilibili"
]
}
],
Expand Down
File renamed without changes
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def configure_ocr_model():
print("请完整克隆本仓库,不要漏掉 \"--recursive\",也不要下载 zip 包!")
exit(1)

ocr_dir = assets_dir / "resource" / "base" / "model" / "ocr"
ocr_dir = assets_dir / "resource" / "model" / "ocr"
if not ocr_dir.exists(): # copy default OCR model only if dir does not exist
shutil.copytree(
assets_dir / "MaaCommonAssets" / "OCR" / "ppocr_v4" / "zh_cn",
Expand Down

0 comments on commit 59c13cb

Please sign in to comment.