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: vars:
SHELL: pwsh SHELL: pwsh
SOURCE: addon\globalPlugins\voicemeeter
DEST: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\
IGNORE: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\__pycache__\
tasks: tasks:
default:
desc: Build the addon
cmds:
- task: build
copy: copy:
desc: Copy sources files to scratchpad directory desc: Copy sources files to scratchpad directory
platforms: [windows] platforms: [windows]
vars:
SOURCE: addon\globalPlugins\voicemeeter
DEST: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\
cmds: cmds:
- "{{.SHELL}} -Command 'robocopy {{.SOURCE}} {{.DEST}} /XD {{.IGNORE}} /NDL'" - "{{.SHELL}} -Command 'robocopy {{.SOURCE}} {{.DEST}} /NDL'"
ignore_error: true ignore_error: true
build: build:

View File

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