[Feat] update apply generator script

This commit is contained in:
Mist 2024-03-17 13:59:32 +08:00
parent 9b9a11f42e
commit ccf108b440
3 changed files with 1 additions and 6 deletions

Binary file not shown.

View file

@ -6,4 +6,3 @@ build_generator_debug:
build_generator:
./scripts/build_generator.sh --release
# cd generator && cargo build --release

View file

@ -1,11 +1,7 @@
source ./scripts/check_os.sh
function apply_generator {
if [ -f lua/generator.so ]; then
rm lua/generator.so
fi
cp lua/"${1}generator.so" lua/generator.so
cp -rf lua/"${os}generator.so" lua/generator.so
}
apply_generator $os