CloverBootloader/Xcode/CloverConfigPlistValidator/Install.sh
SergeySlice c209b26511 some build fixes by LAbyOne
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
2021-05-15 14:32:35 +03:00

37 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
#
# Install.sh
# alternate build for buldpkg
# Created on: May 12, 2021
# Author: LAbyOne
#
cd "$(dirname $([ -L $0 ] && readlink $0 || echo $0))"
declare -r ROOT="$PWD"
declare -r CLOVERROOT=$(dirname $(dirname $ROOT))
declare -r BUILD_PATH="${CLOVERROOT}"/Xcode/CloverConfigPlistValidator/build
declare -r CCPV_PATH="${BUILD_PATH}"/ccpv
declare -r INSTALL_DIR="$CLOVERROOT/CloverPackage/CloverConfigPlistValidator"
buildccpv() {
echo "- Building ccpv..."
cd "${CLOVERROOT}"/Xcode/CloverConfigPlistValidator
/usr/bin/xcodebuild -project 'CloverConfigPlistValidator.xcodeproj' \
-configuration 'Release' \
CONFIGURATION_BUILD_DIR=${BUILD_PATH} \
EPLOYMENT_LOCATION=NO \
ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES >/dev/null
# remove old and recreate directory
rm -Rf "$INSTALL_DIR"
mkdir -p "$INSTALL_DIR"
# Install files
mv "$BUILD_PATH"/CloverConfigPlistValidator "$INSTALL_DIR"/ccpv
# clean up
rm -Rf "$BUILD_PATH"
}
buildccpv