-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTaskfile.unix.yml
25 lines (24 loc) · 884 Bytes
/
Taskfile.unix.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:
- cp -r server/resources build/server/resources
- go build -o build/server/bin/genCert ./server-genCert
prepare-launcher:
platforms: [ linux ]
deps:
- prepare-server-base
- :build-config-all
cmds:
- go build -o build/server ./server
- pkexec --keep-cwd setcap 'CAP_NET_BIND_SERVICE=+ep' build/server/server
- mkdir -p build/launcher/resources
- cp -f launcher/resources/config.toml build/launcher/resources/config.toml
- cp -f launcher/resources/config.game.toml build/launcher/resources/config.game.toml
- go build -o build/launcher/bin/agent ./launcher-agent
prepare-server-genCert:
cmds:
- mkdir -p build/server/resources