mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
20 lines
312 B
Bash
Executable File
20 lines
312 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
|
|
|
|
# Run the codegen
|
|
npx tsx codegen/src/index.ts
|
|
|
|
popd > /dev/null |