File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -27,26 +27,21 @@ clean:
27
27
28
28
deps :
29
29
echo " Installing dependencies..."
30
- sudo luarocks install lua-protobuf
31
- sudo luarocks install luasocket
32
- sudo luarocks install lua-cjson
30
+ luarocks install --local lua-protobuf
31
+ luarocks install --local luasocket
32
+ luarocks install --local lua-cjson
33
33
34
34
install : build
35
35
echo " Installing the project..."
36
- luarocks make --local spawn-sdk-0.1. 0.rockspec
36
+ luarocks make --local spawn-lua- sdk-0.1- 0.rockspec
37
37
38
38
test :
39
39
go test -v ./...
40
40
41
41
compile-proto :
42
42
echo " Compiling protobuf files..."
43
- protoc --lua_out=src/generated/ \
44
- -I =${GOOGLE_PROTO_ROOT} \
45
- ${GOOGLE_PROTO_FILES}
46
-
47
- protoc --lua_out=src/generated/ \
48
- -I =${SPAWN_PROTO_ROOT} \
49
- ${SPAWN_PROTO_FILES}
43
+ docker run --rm -v $(pwd ) :/work -w /work znly/protoc --plugin=protoc-gen-lua=/usr/bin/protoc-gen-lua --lua_out=src/generated -I=${GOOGLE_PROTO_ROOT} ${GOOGLE_PROTO_FILES}
44
+ docker run --rm -v $(pwd ) :/work -w /work znly/protoc --plugin=protoc-gen-lua=/usr/bin/protoc-gen-lua --lua_out=src/generated -I=${SPAWN_PROTO_ROOT} ${SPAWN_PROTO_FILES}
50
45
51
46
52
47
Original file line number Diff line number Diff line change 1
1
package = " spawn-lua-sdk"
2
- version = " 0.1. 0"
2
+ version = " 0.1- 0"
3
3
source = {
4
4
url = " git://github.com/eigr-labs/spawn-lua-sdk"
5
5
}
@@ -9,7 +9,6 @@ description = {
9
9
license = " Apache-2.0"
10
10
}
11
11
dependencies = {
12
- " lua >= 5.3" ,
13
12
" lua-protobuf >= 0.3.3" ,
14
13
" luasocket >= 3.1.0" ,
15
14
" lua-cjson >= 2.1.0"
You can’t perform that action at this time.
0 commit comments