move commonly used scripts to specific folders (#325)

* move commonly used scripts to specific folders

* fixes

* Update test.sh

* Update test.sh

* Fix file permission
This commit is contained in:
ManDude
2021-03-18 20:43:37 +00:00
committed by GitHub
parent 4262145c99
commit 8e1c147ad8
15 changed files with 26 additions and 22 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/game/gk -boot -fakeiso -debug "$@"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/game/gk -fakeiso -debug -nodisplay"$@"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}"/../../out
md5sum --check hash.md5
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/decompiler/decompiler "${DIR}"/../../decompiler/config/jak1_ntsc_black_label.jsonc "${DIR}"/../../iso_data "${DIR}"/../../decompiler_out
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/goalc/goalc "$@"
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"${DIR}"/../../build/game/gk -fakeiso -debug -nokernel -nodisplay "$@"
+60
View File
@@ -0,0 +1,60 @@
#!/usr/bin/env bash
set -e
echo "======================================="
echo "= Jak Project Offline Test ="
echo "======================================="
echo ""
echo " ================= Cloning..."
cd ../..
ISO_DATA_PATH=${1}
BRANCH_NAME=${2:-master}
# Provide a default location to bind the ISO_DATA_PATH
ISO_DATA_SYM_LINK_DIR=${3:-iso_data}
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 $ISO_DATA_SYM_LINK_DIR
mkdir build
cd build
echo " =============== Building..."
cmake ..
make -j
echo " ================ Running unit tests..."
../test.sh
echo " ================ Decompiling..."
../decomp.sh
echo " ================ Building assets..."
../gc.sh -cmd \(build-data\)
echo " ================ Checking assets..."
../check.sh
echo " ================ Building game..."
../gc.sh -cmd \(build-game\)
echo " ================ Booting game..."
../boot_game.sh
echo "Offline test has completed successfully!"