mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-12-12 14:36:56 +01:00
commit
e66e32d81d
@ -46,13 +46,13 @@ cp -f ../BootHFS/boot1f32-install.sh CloverV2/EFI/CLOVER/doc/boot1f32-install.s
|
|||||||
# Workspace = Clover/CloverPackage
|
# Workspace = Clover/CloverPackage
|
||||||
# Prepare i386 for building package installer.
|
# Prepare i386 for building package installer.
|
||||||
|
|
||||||
if [[ -d "$PKG_BUILD_DIR" && $(stat -f '%u' "$PKG_BUILD_DIR") -eq 0 ]]; then
|
# if [[ -d "$PKG_BUILD_DIR" && $(stat -f '%u' "$PKG_BUILD_DIR") -eq 0 ]]; then
|
||||||
sudo rm -rf sym
|
# sudo rm -rf sym
|
||||||
fi
|
# fi
|
||||||
rm -rf sym
|
# rm -rf sym
|
||||||
|
#
|
||||||
# Create a new sym directory
|
# # Create a new sym directory
|
||||||
mkdir sym
|
# mkdir sym
|
||||||
|
|
||||||
# Make the translation
|
# Make the translation
|
||||||
echo ""
|
echo ""
|
||||||
|
@ -6,15 +6,25 @@
|
|||||||
# Author: LAbyOne
|
# Author: LAbyOne
|
||||||
#
|
#
|
||||||
cd "$(dirname $([ -L $0 ] && readlink $0 || echo $0))"
|
cd "$(dirname $([ -L $0 ] && readlink $0 || echo $0))"
|
||||||
|
REVISION=$(git describe --tags $(git rev-list --tags --max-count=1))
|
||||||
|
|
||||||
declare -r ROOT="$PWD"
|
declare -r ROOT="$PWD"
|
||||||
declare -r CLOVERROOT=$(dirname $(dirname $ROOT))
|
declare -r CLOVERROOT=$(dirname $(dirname $ROOT))
|
||||||
declare -r BUILD_PATH="${CLOVERROOT}"/Xcode/CloverConfigPlistValidator/build
|
declare -r BUILD_PATH="${CLOVERROOT}"/Xcode/CloverConfigPlistValidator/build
|
||||||
declare -r CCPV_PATH="${BUILD_PATH}"/ccpv
|
declare -r CCPV_PATH="${BUILD_PATH}"/ccpv
|
||||||
declare -r INSTALL_DIR="$CLOVERROOT/CloverPackage/CloverConfigPlistValidator"
|
declare -r INSTALL_DIR="$CLOVERROOT/CloverPackage/CloverConfigPlistValidator"
|
||||||
|
declare -r SYMROOT="${CLOVERROOT}/CloverPackage/sym"
|
||||||
|
|
||||||
|
# Clear old sym directory and Create a new one
|
||||||
|
if [[ -d "$SYMROOT" && $(stat -f '%u' "$SYMROOT") -eq 0 ]]; then
|
||||||
|
sudo rm -rf "$SYMROOT"
|
||||||
|
fi
|
||||||
|
rm -rf "$SYMROOT"
|
||||||
|
mkdir "$SYMROOT"
|
||||||
|
|
||||||
|
# make CloverConfigPlistValidator build
|
||||||
buildccpv() {
|
buildccpv() {
|
||||||
echo "- Building ccpv..."
|
echo "- Building ccpv and archive"
|
||||||
cd "${CLOVERROOT}"/Xcode/CloverConfigPlistValidator
|
cd "${CLOVERROOT}"/Xcode/CloverConfigPlistValidator
|
||||||
/usr/bin/xcodebuild -project 'CloverConfigPlistValidator.xcodeproj' \
|
/usr/bin/xcodebuild -project 'CloverConfigPlistValidator.xcodeproj' \
|
||||||
-configuration 'Release' \
|
-configuration 'Release' \
|
||||||
@ -22,16 +32,20 @@ cd "${CLOVERROOT}"/Xcode/CloverConfigPlistValidator
|
|||||||
EPLOYMENT_LOCATION=NO \
|
EPLOYMENT_LOCATION=NO \
|
||||||
ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES >/dev/null
|
ARCHS=x86_64 VALID_ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES >/dev/null
|
||||||
|
|
||||||
# remove old and recreate directory
|
# Clear old ccpv directory and Create a new one
|
||||||
rm -Rf "$INSTALL_DIR"
|
rm -Rf "$INSTALL_DIR"
|
||||||
mkdir -p "$INSTALL_DIR"
|
mkdir -p "$INSTALL_DIR"
|
||||||
|
|
||||||
# Install files
|
# Install files
|
||||||
mv "$BUILD_PATH"/CloverConfigPlistValidator "$INSTALL_DIR"/ccpv
|
cp "$BUILD_PATH"/CloverConfigPlistValidator "$INSTALL_DIR"/ccpv
|
||||||
|
|
||||||
|
# make archive
|
||||||
|
mv "$BUILD_PATH"/CloverConfigPlistValidator "$BUILD_PATH"/CloverConfigPlistValidator_${REVISION}
|
||||||
|
cd "$BUILD_PATH"
|
||||||
|
zip -qr CloverConfigPlistValidator_${REVISION}.zip CloverConfigPlistValidator_${REVISION}
|
||||||
|
cp "$BUILD_PATH"/CloverConfigPlistValidator_${REVISION}.zip "${SYMROOT}"
|
||||||
# clean up
|
# clean up
|
||||||
rm -Rf "$BUILD_PATH"
|
rm -Rf "$BUILD_PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
buildccpv
|
buildccpv
|
Loading…
Reference in New Issue
Block a user