forked from mirror/codesnap.nvim
[Feat] update apply generator script
This commit is contained in:
parent
9b9a11f42e
commit
ccf108b440
3 changed files with 1 additions and 6 deletions
BIN
lua/generator.so
BIN
lua/generator.so
Binary file not shown.
1
makefile
1
makefile
|
@ -6,4 +6,3 @@ build_generator_debug:
|
||||||
|
|
||||||
build_generator:
|
build_generator:
|
||||||
./scripts/build_generator.sh --release
|
./scripts/build_generator.sh --release
|
||||||
# cd generator && cargo build --release
|
|
||||||
|
|
|
@ -1,11 +1,7 @@
|
||||||
source ./scripts/check_os.sh
|
source ./scripts/check_os.sh
|
||||||
|
|
||||||
function apply_generator {
|
function apply_generator {
|
||||||
if [ -f lua/generator.so ]; then
|
cp -rf lua/"${os}generator.so" lua/generator.so
|
||||||
rm lua/generator.so
|
|
||||||
fi
|
|
||||||
|
|
||||||
cp lua/"${1}generator.so" lua/generator.so
|
|
||||||
}
|
}
|
||||||
|
|
||||||
apply_generator $os
|
apply_generator $os
|
||||||
|
|
Loading…
Reference in a new issue