-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
31 lines (26 loc) · 1.11 KB
/
Taskfile.yml
File metadata and controls
31 lines (26 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
version: '3'
tasks:
clean:
desc: Remove all build artifacts and temporary files (bin/, obj/, .vs/, dist/)
cmds:
- powershell -NoProfile -Command "Remove-Item -Recurse -Force -ErrorAction SilentlyContinue bin, obj, .vs, dist"
- powershell -NoProfile -Command "Get-ChildItem -Filter '*.user' -File | Remove-Item -Force -ErrorAction SilentlyContinue"
build:
desc: Publish Release single-file exe to dist/
cmds:
- dotnet publish -r win-x64 --self-contained false -p:PublishSingleFile=true -p:DebugType=none -c Release -o dist
run:
desc: Launch the published Release exe from dist/
cmds:
- dist\\AudioIntegrityChecker.exe
run-dev:
desc: Build Debug and launch (copies libFLAC.dll from dist/ to Debug output)
cmds:
- dotnet build -c Debug
- cmd: powershell -NoProfile -Command "Copy-Item dist\\libFLAC.dll bin\\Debug\\net8.0-windows\\ -ErrorAction SilentlyContinue"
ignore_error: true
- bin\\Debug\\net8.0-windows\\AudioIntegrityChecker.exe
format:
desc: Format all C# source files with CSharpier
cmds:
- dotnet csharpier format .