Files
cocos-engine/native/utils/generate_decorators.sh
PP 29faba52e9 fix: wrong cache input directory of native pack tool (#16214)
* fix: wrong cache input directory of native pack tool

* fix generete decorators
2023-09-08 10:20:23 +08:00

36 lines
835 B
Bash

#!/usr/bin/env bash
set -e
# Get the absolute path of the script
SCRIPT_PATH="$(readlink -f "$0")"
# Extract the directory path from the script path
SCRIPT_DIR="$(dirname "$SCRIPT_PATH")"
cd $SCRIPT_DIR/..
echo "==== Generate compile_commands.json & ninja target"
rm -rf $SCRIPT_DIR/../build/CMakeCache.txt
bash ./utils/generate_compile_commands_android.sh
echo "==== Generate binding code ..."
ninja -C build genbindings
echo "==== npm install in build-engine ..."
cd ..
npm install
cd packages/build-engine
echo "==== Installing babel dependencies ..."
npm install
echo "==== Build typescripts ... "
npm run build
echo "==== parsing ..."
node $SCRIPT_DIR/gen_decorators.js
echo "==== generate done!"
# git checkout HEAD package.json package-lock.json
# git checkout HEAD scripts # revert all changes within build-engine/