Skip to content

Commit 9abf7cc

Browse files
committed
feat: update maa-tools
1 parent 0c78e87 commit 9abf7cc

6 files changed

Lines changed: 2499 additions & 140 deletions

File tree

.github/workflows/check.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,14 @@ jobs:
3232

3333
- name: Run maa-checker
3434
run: |
35-
npx @nekosu/maa-checker@latest ./assets/interface.json --github=.
35+
npm ci
36+
npx @nekosu/maa-tools check
3637
3738
- name: Install maafw
3839
run: |
3940
python -m pip install --upgrade pip
4041
python -m pip install --upgrade maafw --pre
4142
42-
- name: Check Resource
43-
run: |
44-
python ./check_resource.py ./assets/resource/
45-
4643
- name: Validate JSON Schema
4744
run: |
4845
python -m pip install jsonschema==4.26.0 referencing==0.37.0

assets/interface.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"name": "B 服",
4848
"path": [
4949
"./resource",
50-
"./resource_bilibili"
50+
// "./resource_bilibili"
5151
]
5252
}
5353
],

check_resource.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

maatools.config.mts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { FullConfig } from '@nekosu/maa-tools'
2+
3+
const config: FullConfig = {
4+
cwd: import.meta.dirname,
5+
maaVersion: 'latest',
6+
interfacePath: 'assets/interface.json',
7+
check: {}
8+
}
9+
10+
export default config

0 commit comments

Comments
 (0)