-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Taskfile.windows.yml
25 lines (24 loc) · 1.22 KB
/
Taskfile.windows.yml
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
# yaml-language-server: $schema=https://taskfile.dev/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: '3'
tasks:
prepare-server-base:
internal: true
cmds:
- powershell New-Item -Path "build/server/resources" -ItemType Directory -ErrorAction Ignore -Force
- powershell Copy-Item -Path "server/resources/*" -Destination "build/server/resources" -Recurse -ErrorAction Ignore -Force
- go build -o build/server/bin/genCert.exe ./server-genCert
prepare-launcher:
platforms: [ windows ]
deps:
- prepare-server-base
- :build-config-all
cmds:
- go build -o build/server ./server
- powershell New-Item -ItemType Directory -Force -Path build/launcher/resources -ErrorAction Ignore
- powershell Copy-Item -Path launcher/resources/config.toml -Destination build/launcher/resources/config.toml -ErrorAction Ignore -Force
- powershell Copy-Item -Path launcher/resources/config.game.toml -Destination build/launcher/resources/config.game.toml -ErrorAction Ignore -Force
- go build -o build/launcher/bin/agent.exe ./launcher-agent
prepare-server-genCert:
cmds:
- powershell New-Item -ItemType Directory -ErrorAction Ignore -Force -Path build/server/resources