mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-21 00:33:31 +00:00
Compare commits
4 Commits
v1.0.0
...
c7b8622aac
| Author | SHA1 | Date | |
|---|---|---|---|
| c7b8622aac | |||
| 2706338fcb | |||
| ff98aa5f89 | |||
| 03252fe30f |
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/*"
|
||||||
@@ -2,7 +2,7 @@ import voicemeeterlib
|
|||||||
|
|
||||||
import nvda_voicemeeter
|
import nvda_voicemeeter
|
||||||
|
|
||||||
KIND_ID = "potato"
|
KIND_ID = 'potato'
|
||||||
|
|
||||||
with voicemeeterlib.api(KIND_ID) as vm:
|
with voicemeeterlib.api(KIND_ID) as vm:
|
||||||
with nvda_voicemeeter.draw(KIND_ID, vm) as window:
|
with nvda_voicemeeter.draw(KIND_ID, vm) as window:
|
||||||
|
|||||||
@@ -19,9 +19,9 @@ build = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
gui-basic = "nvda_voicemeeter.gui.basic:run"
|
gui-basic-nvda = "nvda_voicemeeter.gui.basic:run"
|
||||||
gui-banana = "nvda_voicemeeter.gui.banana:run"
|
gui-banana-nvda = "nvda_voicemeeter.gui.banana:run"
|
||||||
gui-potato = "nvda_voicemeeter.gui.potato:run"
|
gui-potato-nvda = "nvda_voicemeeter.gui.potato:run"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["pdm-backend"]
|
requires = ["pdm-backend"]
|
||||||
|
|||||||
Reference in New Issue
Block a user