-
Notifications
You must be signed in to change notification settings - Fork 3
/
Taskfile.yaml
57 lines (46 loc) · 1.31 KB
/
Taskfile.yaml
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# https://taskfile.dev
version: '3'
tasks:
all:
- task: clean
- task: format
- task: build
- task: test
- task: pack
- task: install
build:
cmds:
- dotnet build src --configuration Release
test:
cmds:
- dotnet test tests
format:
cmds:
- dotnet format src
pack:
deps:
- build
cmds:
- powershell cp -Recurse -Force src/bin/Release/net462/ .\dist\raw\
- ~/AppData/Local/Playnite/Toolbox.exe pack src/bin/Release/net462/ dist
# - powershell mv ./dist/*.pext
clean:
cmds:
- powershell -command "Remove-Item -Force -Recurse .\dist -ErrorAction Ignore" || true
- powershell -command "Remove-Item -Force -Recurse .\src\bin\ -ErrorAction Ignore" || true
install:
cmds:
- powershell ./dist/*.pext
logs:
cmds:
- powershell "Get-Content ~/Appdata/Roaming/Playnite/extensions.log" -Wait
settings:
cmds:
- powershell "~/Appdata/Roaming/Playnite/ExtensionsData/c038558e-427b-4551-be4c-be7009ce5a8d/config.json"
download-game-test-data:
cmds:
- |
"{{.USERPROFILE}}\scoop\shims\curl.exe" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json" \
"https://www.pcgamingwiki.com/w/api.php?action=parse&format=json&page=Call_of_Duty:_Modern_Warfare" > test.json