rename build command to avoid overriding built-in

This commit is contained in:
Onyx and Iris 2025-02-14 23:33:34 +00:00
parent 1fb435416f
commit 3aab5922ab
2 changed files with 10 additions and 5 deletions

View File

@ -2,16 +2,21 @@ version: '3'
vars:
SHELL: pwsh
SOURCE: addon\globalPlugins\voicemeeter
DEST: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\
IGNORE: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\__pycache__\
tasks:
default:
desc: Build the addon
cmds:
- task: build
copy:
desc: Copy sources files to scratchpad directory
platforms: [windows]
vars:
SOURCE: addon\globalPlugins\voicemeeter
DEST: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\
cmds:
- "{{.SHELL}} -Command 'robocopy {{.SOURCE}} {{.DEST}} /XD {{.IGNORE}} /NDL'"
- "{{.SHELL}} -Command 'robocopy {{.SOURCE}} {{.DEST}} /NDL'"
ignore_error: true
build:

View File

@ -21,7 +21,7 @@ distribution = false
[tool.pdm.scripts]
copy = "task copy"
build = "task build"
release = "task build"
[tool.ruff]
exclude = [