-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (41 loc) · 1.22 KB
/
Copy pathTaskfile.yml
File metadata and controls
47 lines (41 loc) · 1.22 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
version: '3'
tasks:
store-version:
cmds:
- git describe --tags > assets/version
mobile:
deps:
- task: store-version
dir: ./mobile
env:
VERSION: "V"
cmds:
- ebitenmobile bind -target ios -o kingdoms.xcframework .
mobile-deploy:
deps:
- mobile
dir: ./mobile/Kingdoms
cmds:
- xcodebuild -scheme Kingdoms -configuration Debug -sdk iphoneos -derivedDataPath build
- ios-deploy --bundle build/Build/Products/Debug-iphoneos/Kingdoms.app --nostart --no-wifi
mobile-android:
deps:
- task: store-version
dir: ./mobile
env:
ANDROID_HOME: "{{.HOME}}/Library/Android/sdk"
VERSION: "V"
cmds:
- PATH="/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin:{{.PATH}}"
ebitenmobile bind -target android -androidapi 21 -javapkg m110.kingdoms -o Kingdoms-android/libs/kingdoms.aar .
docker-protoc:
dir: ./dev/protoc
cmds:
- docker build -t protoc .
proto:
deps:
- task: docker-protoc
cmds:
- docker run --platform=linux/amd64 --rm -v "$PWD":/src -w /src protoc protoc
--proto_path=save save/schema.proto save/actions.proto
--go_out=save --go_opt=paths=source_relative