mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-03-09 11:49:15 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
version: '3'
|
|
|
|
tasks:
|
|
build:
|
|
desc: Build Azure artifacts
|
|
deps: [rewrite]
|
|
cmds:
|
|
- defer: { task: restore }
|
|
- for:
|
|
matrix:
|
|
KIND: [basic, banana, potato]
|
|
THEME: [azure-light, azure-dark]
|
|
cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/azure/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec
|
|
|
|
rewrite:
|
|
internal: true
|
|
desc: Run the source code rewriter
|
|
cmds:
|
|
- poetry run python tools/rewriter.py --rewrite --theme {{.THEME}}
|
|
|
|
restore:
|
|
internal: true
|
|
desc: Restore the backup files
|
|
cmds:
|
|
- poetry run python tools/rewriter.py --restore
|
|
|
|
compress:
|
|
desc: Compress Azure artifacts
|
|
cmds:
|
|
- for:
|
|
matrix:
|
|
KIND: [basic, banana, potato]
|
|
THEME: [azure-light, azure-dark]
|
|
cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}}.zip -Force"'
|
|
|
|
clean:
|
|
desc: Clean build and dist directories
|
|
cmds:
|
|
- |
|
|
{{.SHELL}} -Command "Remove-Item -Path build/azure-*,dist/azure-* -Recurse -Force"
|