mirror of
https://github.com/open-goal/jak-project
synced 2026-07-06 14:01:20 -04:00
953c1512db
* begin support for v2 * export game text * generate text files * working text load * fix windows * add test and clean up game tests a bit * load the right file * add separate program to launch the data compiler * add offline test script
52 lines
972 B
Bash
Executable File
52 lines
972 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
echo "======================================="
|
|
echo "= Jak Project Offline Test ="
|
|
echo "======================================="
|
|
echo ""
|
|
echo " ================= Cloning..."
|
|
|
|
ISO_DATA_PATH=${1}
|
|
BRANCH_NAME=${2:-master}
|
|
|
|
if [ -z "$1" ]
|
|
then
|
|
echo "Must supply path to iso data folder!"
|
|
exit 1
|
|
fi
|
|
|
|
echo " Branch: ${BRANCH_NAME}"
|
|
mkdir project
|
|
cd project
|
|
git clone https://github.com/water111/jak-project.git
|
|
cd jak-project
|
|
git checkout $BRANCH_NAME
|
|
git submodule update --init --recursive
|
|
|
|
# create symlink to the iso_data folder.
|
|
rm -r iso_data
|
|
ln -s $ISO_DATA_PATH
|
|
|
|
|
|
mkdir build
|
|
cd build
|
|
echo " =============== Building..."
|
|
cmake ..
|
|
make -j
|
|
|
|
echo " ================ Running unit tests..."
|
|
../test.sh
|
|
|
|
echo " ================ Decompiling..."
|
|
../decomp.sh
|
|
|
|
echo " ================ Building assets..."
|
|
./goalc/data_compiler
|
|
|
|
echo " ================ Checking assets..."
|
|
../check.sh
|
|
|
|
echo "Offline test has completed successfully!"
|