build-unity-package.sh 687 Bytes
Newer Older
1 2 3 4 5
# Checkout Package Manager
BASE_URL=`echo $CI_REPOSITORY_URL | sed "s;\/*$CI_PROJECT_PATH.*;;"`
REPO_URL="${BASE_URL}/robinryf/buu-package-manager.git"
git clone ${REPO_URL} BuuPackageManager
run-unity.sh "-batchmode -createProject $(pwd)/UnityProject -logFile -quit"
6
python BuuPackageManager/dependencyResolver.py $(pwd) $(pwd)/rootPackage $(pwd)/UnityProject/Assets
7 8 9 10
PACKAGE_PATH_LIST=$(cat includedPackagesPathList)
ROOT_PACKAGE_NAME=$(cat rootPackageName)
echo "File content. ${ROOT_PACKAGE_NAME} and packages. ${PACKAGE_PATH_LIST}"
run-unity.sh "-batchmode -projectPath $(pwd)/UnityProject -exportPackage ${PACKAGE_PATH_LIST} $(pwd)/${ROOT_PACKAGE_NAME}.unitypackage -logFile -quit"