From 3aab5922ab36ef5b5095e8a0ba23c3105cc3a565 Mon Sep 17 00:00:00 2001 From: Onyx and Iris Date: Fri, 14 Feb 2025 23:33:34 +0000 Subject: [PATCH] rename build command to avoid overriding built-in --- Taskfile.yml | 13 +++++++++---- pyproject.toml | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index 3961f4c..7fc2348 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 38ba827..1aa2766 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -21,7 +21,7 @@ distribution = false [tool.pdm.scripts] copy = "task copy" -build = "task build" +release = "task build" [tool.ruff] exclude = [