forked from luskaner/aoe2DELanServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.windows.yml
34 lines (33 loc) · 1.39 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
26
27
28
29
30
31
32
33
34
# 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 Copy-Item -Path "server/resources/*" -Destination "build/server/resources" -Recurse -ErrorAction Ignore -Force
- go build -o build/server/genCert.exe ./server-genCert
build-config:
internal: true
cmds:
- go build -o build/launcher/config.exe ./launcher-config
build-config-admin:
cmds:
- go build -o build/launcher/config-admin.exe ./launcher-config-admin
build-config-admin-agent:
deps: [ build-config-admin ]
cmds:
- go build -o build/launcher/config-admin-agent.exe ./launcher-config-admin-agent
build-config-all:
deps: [ build-config, build-config-admin-agent ]
prepare-launcher:
platforms: [ windows/amd64 ]
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.ini -Destination build/launcher/resources/config.ini -ErrorAction Ignore -Force
- go build -o build/launcher/watcher.exe ./launcher-watcher
prepare-server-genCert:
cmds:
- powershell New-Item -ItemType Directory -ErrorAction Ignore -Force -Path build/server/resources