mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2025-02-22 12:55:08 +00:00
add Taskfile
This commit is contained in:
parent
03252fe30f
commit
2706338fcb
40
Taskfile.yml
Normal file
40
Taskfile.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
vars:
|
||||||
|
SHELL: pwsh
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
default:
|
||||||
|
desc: Prepare artifacts for release
|
||||||
|
cmds:
|
||||||
|
- task: release
|
||||||
|
|
||||||
|
release:
|
||||||
|
desc: Build and compress all artifacts
|
||||||
|
cmds:
|
||||||
|
- task: build
|
||||||
|
- task: compress
|
||||||
|
|
||||||
|
build:
|
||||||
|
desc: Build the project
|
||||||
|
cmds:
|
||||||
|
- for:
|
||||||
|
matrix:
|
||||||
|
KIND: ["basic", "banana", "potato"]
|
||||||
|
cmd: pdm run pyinstaller --noconfirm --distpath dist/{{.ITEM.KIND}} spec/{{.ITEM.KIND}}.spec
|
||||||
|
|
||||||
|
compress:
|
||||||
|
desc: Compress the build artifacts
|
||||||
|
cmds:
|
||||||
|
- for:
|
||||||
|
matrix:
|
||||||
|
KIND: ["basic", "banana", "potato"]
|
||||||
|
cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.KIND}}.zip"'
|
||||||
|
|
||||||
|
clean:
|
||||||
|
desc: Clean the project
|
||||||
|
cmds:
|
||||||
|
- |
|
||||||
|
{{.SHELL}} -Command "
|
||||||
|
Remove-Item -Recurse -Force build/basic,build/banana,build/potato
|
||||||
|
Remove-Item -Recurse -Force dist/*"
|
Loading…
Reference in New Issue
Block a user