mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 09:46:02 +08:00
28 lines
460 B
Bash
Executable File
28 lines
460 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Get to the script's directory
|
|
pushd "$(dirname "$0")" > /dev/null
|
|
|
|
#./setup.sh
|
|
|
|
# Install dependencies if needed
|
|
if [ ! -d "codegen/node_modules" ]; then
|
|
pushd codegen > /dev/null
|
|
npm install
|
|
popd > /dev/null
|
|
fi
|
|
|
|
# Copy spine-c and spine-cpp sources
|
|
./setup.sh
|
|
|
|
# Run the codegen
|
|
npx tsx codegen/src/index.ts
|
|
|
|
# Build test spine_flutter shared library
|
|
pushd ../spine_flutter/test > /dev/null
|
|
./build.sh
|
|
popd
|
|
|
|
popd > /dev/null |