mirror of
https://github.com/onyx-and-iris/voicemeeter-compact.git
synced 2026-04-01 14:19:12 +00:00
add generate-specs to azure/forest Taskfiles
ensure generate-specs is run before build tasks.
This commit is contained in:
parent
5258671a79
commit
428db10b8f
3
.gitignore
vendored
3
.gitignore
vendored
@ -224,6 +224,9 @@ spec/**/*
|
|||||||
!spec/*/
|
!spec/*/
|
||||||
!spec/**/.gitkeep
|
!spec/**/.gitkeep
|
||||||
|
|
||||||
|
# Backup files
|
||||||
|
tools/src/*.bk
|
||||||
|
|
||||||
# Taskfile build files
|
# Taskfile build files
|
||||||
Taskfile.unified.yml
|
Taskfile.unified.yml
|
||||||
SPEC_CONSOLIDATION.md
|
SPEC_CONSOLIDATION.md
|
||||||
|
|||||||
@ -3,24 +3,32 @@ version: '3'
|
|||||||
tasks:
|
tasks:
|
||||||
build:
|
build:
|
||||||
desc: Build Azure artifacts
|
desc: Build Azure artifacts
|
||||||
deps: [rewrite]
|
deps: [generate-specs, rewrite]
|
||||||
cmds:
|
cmds:
|
||||||
- defer: { task: restore }
|
- defer: { task: restore }
|
||||||
- for:
|
- for:
|
||||||
matrix:
|
matrix:
|
||||||
KIND: [basic, banana, potato]
|
KIND: [basic, banana, potato]
|
||||||
THEME: [azure-light, azure-dark]
|
THEME: [azure-light, azure-dark]
|
||||||
cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/azure/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec
|
cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/{{.THEME}}/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec
|
||||||
|
|
||||||
|
generate-specs:
|
||||||
|
desc: Generate all spec files from templates
|
||||||
|
cmds:
|
||||||
|
- poetry run python tools/spec_generator.py --clean
|
||||||
|
internal: true
|
||||||
|
|
||||||
rewrite:
|
rewrite:
|
||||||
desc: Run the source code rewriter
|
desc: Run the source code rewriter
|
||||||
cmds:
|
cmds:
|
||||||
- poetry run python tools/rewriter.py --rewrite --theme {{.THEME}}
|
- poetry run python tools/rewriter.py --rewrite --theme {{.THEME}}
|
||||||
|
internal: true
|
||||||
|
|
||||||
restore:
|
restore:
|
||||||
desc: Restore the backup files
|
desc: Restore the backup files
|
||||||
cmds:
|
cmds:
|
||||||
- poetry run python tools/rewriter.py --restore
|
- poetry run python tools/rewriter.py --restore
|
||||||
|
internal: true
|
||||||
|
|
||||||
compress:
|
compress:
|
||||||
desc: Compress Azure artifacts
|
desc: Compress Azure artifacts
|
||||||
@ -35,4 +43,4 @@ tasks:
|
|||||||
desc: Clean build and dist directories
|
desc: Clean build and dist directories
|
||||||
cmds:
|
cmds:
|
||||||
- |
|
- |
|
||||||
{{.SHELL}} -Command "Remove-Item -Path build/azure-*,dist/azure-* -Recurse -Force"
|
{{.SHELL}} -Command "Remove-Item -Path build/{{.THEME}}-*,dist/{{.THEME}}-* -Recurse -Force"
|
||||||
|
|||||||
@ -3,24 +3,32 @@ version: '3'
|
|||||||
tasks:
|
tasks:
|
||||||
build:
|
build:
|
||||||
desc: Build Forest artifacts
|
desc: Build Forest artifacts
|
||||||
deps: [rewrite]
|
deps: [generate-specs, rewrite]
|
||||||
cmds:
|
cmds:
|
||||||
- defer: { task: restore }
|
- defer: { task: restore }
|
||||||
- for:
|
- for:
|
||||||
matrix:
|
matrix:
|
||||||
KIND: [basic, banana, potato]
|
KIND: [basic, banana, potato]
|
||||||
THEME: [forest-light, forest-dark]
|
THEME: [forest-light, forest-dark]
|
||||||
cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/forest/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec
|
cmd: poetry run pyinstaller --noconfirm --distpath dist/{{.ITEM.THEME}}-{{.ITEM.KIND}} spec/{{.THEME}}/{{.ITEM.THEME}}-{{.ITEM.KIND}}.spec
|
||||||
|
|
||||||
|
generate-specs:
|
||||||
|
desc: Generate all spec files from templates
|
||||||
|
cmds:
|
||||||
|
- poetry run python tools/spec_generator.py --clean
|
||||||
|
internal: true
|
||||||
|
|
||||||
rewrite:
|
rewrite:
|
||||||
desc: Run the source code rewriter
|
desc: Run the source code rewriter
|
||||||
cmds:
|
cmds:
|
||||||
- poetry run python tools/rewriter.py --rewrite --theme {{.THEME}}
|
- poetry run python tools/rewriter.py --rewrite --theme {{.THEME}}
|
||||||
|
internal: true
|
||||||
|
|
||||||
restore:
|
restore:
|
||||||
desc: Restore the backup files
|
desc: Restore the backup files
|
||||||
cmds:
|
cmds:
|
||||||
- poetry run python tools/rewriter.py --restore
|
- poetry run python tools/rewriter.py --restore
|
||||||
|
internal: true
|
||||||
|
|
||||||
compress:
|
compress:
|
||||||
desc: Compress Forest artifacts
|
desc: Compress Forest artifacts
|
||||||
@ -35,4 +43,4 @@ tasks:
|
|||||||
desc: Clean build and dist directories
|
desc: Clean build and dist directories
|
||||||
cmds:
|
cmds:
|
||||||
- |
|
- |
|
||||||
{{.SHELL}} -Command "Remove-Item -Path build/forest-*,dist/forest-* -Recurse -Force"
|
{{.SHELL}} -Command "Remove-Item -Path build/{{.THEME}}-*,dist/{{.THEME}}-* -Recurse -Force"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user