Files
cocos4/native/tests/sebind-tests/run-windows.sh
T
2022-05-25 11:17:36 +08:00

21 lines
391 B
Bash

#!bin/bash
set -x
cp -r ../../../templates/windows win64
mkdir -p proj
cp cfg.cmake proj/
GW="$(realpath `pwd`/../..)"
cmake -B proj -S win64 -DRES_DIR="${GW}/tests/sebind-tests" -DCOCOS_X_PATH="${GW}" \
-DAPP_NAME=sebind
cmake --build proj
cd proj/Debug
rm -f result.txt
./sebind.exe || true
if [[ -f "result.txt" ]];
then
echo "success!"
else
echo "Run sebind-tests fail!"
exit 1
fi