Add assembly Carthage artifacts
This commit is contained in:
Родитель
b7b88ee14b
Коммит
a6f099fec3
|
@ -106,6 +106,7 @@ jobs:
|
|||
VERSION="$(cd $BUILD_SOURCESDIRECTORY && agvtool vers -terse)"
|
||||
[[ $BUILD_SOURCEBRANCH != 'refs/heads/master' ]] && VERSION="$VERSION+$(cd $BUILD_SOURCESDIRECTORY && git rev-parse --short $BUILD_SOURCEVERSION)"
|
||||
"$BUILD_SOURCESDIRECTORY/Scripts/create-archive.sh" "PLCrashReporter-$VERSION" "iOS Framework" "tvOS Framework" "Mac OS X Framework" "Tools"
|
||||
"$BUILD_SOURCESDIRECTORY/Scripts/create-archive.sh" "PLCrashReporter-$VERSION.carthage.framework" "iOS Framework" "tvOS Framework" "Mac OS X Framework" "Tools"
|
||||
"$BUILD_SOURCESDIRECTORY/Scripts/create-archive.sh" "PLCrashReporter-Static-$VERSION" Static/*
|
||||
"$BUILD_SOURCESDIRECTORY/Scripts/create-archive.sh" "PLCrashReporter-XCFramework-$VERSION" "CrashReporter.xcframework"
|
||||
displayName: 'Create Archives'
|
||||
|
|
|
@ -7,18 +7,20 @@ set -e
|
|||
PROJECT_DIR="$(dirname "$0")/.."
|
||||
|
||||
# Create temporary directory
|
||||
TEMP_DIR=$(mktemp -d -t "$1")
|
||||
mkdir -p "$TEMP_DIR/$1"
|
||||
TEMP_ARCH_NAME="PLCrashReporter"
|
||||
TEMP_DIR=$(mktemp -d -t "$TEMP_ARCH_NAME")
|
||||
TEMP_PATH_TO_ARCH="$TEMP_DIR/$TEMP_ARCH_NAME"
|
||||
mkdir -p "$TEMP_PATH_TO_ARCH"
|
||||
|
||||
# Copy required files
|
||||
cp "$PROJECT_DIR/LICENSE" "$TEMP_DIR/$1/LICENSE.txt"
|
||||
cp -R "../Documentation" "$TEMP_DIR/$1"
|
||||
(cd "$TEMP_DIR/$1" && ln -sf "Documentation/index.html" "API Documentation.html")
|
||||
cp -R "${@:2}" "$TEMP_DIR/$1"
|
||||
cp "$PROJECT_DIR/LICENSE" "$TEMP_PATH_TO_ARCH/LICENSE.txt"
|
||||
#cp -R "../Documentation" "$TEMP_PATH_TO_ARCH"
|
||||
(cd "$TEMP_PATH_TO_ARCH" && ln -sf "Documentation/index.html" "API Documentation.html")
|
||||
cp -R "${@:2}" "$TEMP_PATH_TO_ARCH"
|
||||
|
||||
# Archive content
|
||||
rm -f "$TEMP_DIR/$1.zip"
|
||||
(cd "$TEMP_DIR" && zip -ryq9 "$1.zip" "$1")
|
||||
rm -f "$TEMP_DIR/$TEMP_ARCH_NAME.zip"
|
||||
(cd "$TEMP_DIR" && zip -ryq9 "$1.zip" "$TEMP_ARCH_NAME")
|
||||
mv "$TEMP_DIR/$1.zip" .
|
||||
|
||||
# Remove temporary directory
|
||||
|
|
Загрузка…
Ссылка в новой задаче