Skip to content

Commit c8c97de

Browse files
committed
Fixed build script
1 parent 9649a77 commit c8c97de

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ go.sum
1919
_obj/
2020

2121
# Python artifacts
22+
__pycache__/
2223
.venv/
2324
dist/
2425
*.egg-info

build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ ts build --wasm && \
2424
cp -a test target && \
2525
ts test || { playground; exit 1 ;}
2626

27-
mkdir -p vendor && \
28-
rm -f target/libtree-sitter-cedar.* vendor/libtree-sitter-cedar.* && \
27+
rm -f target/libtree-sitter-cedar.* cedarscript_grammar/libtree-sitter-cedar.* && \
2928
(cd target && cc -c -I./src src/parser.c && cc -dynamiclib -o libtree-sitter-cedar.dylib parser.o) && \
30-
mv target/libtree-sitter-cedar.dylib vendor/ && \
29+
mv target/libtree-sitter-cedar.dylib cedarscript_grammar/ && \
3130
docker build -t tree-sitter-cedar-builder . && \
3231
docker cp $(docker create tree-sitter-cedar-builder):/libtree-sitter-cedar.so \
33-
vendor/libtree-sitter-cedar.so || exit
32+
cedarscript_grammar/libtree-sitter-cedar.so || exit
33+
34+
ls -Falk cedarscript_grammar/lib*
35+
du -hs cedarscript_grammar/lib*
3436

3537
playground

0 commit comments

Comments
 (0)