Skip to content

Commit 3c4e180

Browse files
authored
Merge pull request #58 from HyperInspire/feature/build_ios
Build ios Former-commit-id: 1a8a22f
2 parents 428ef7f + c62f373 commit 3c4e180

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

command/build_ios.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,16 @@ download_and_unzip "$MNN_IOS_URL" "$MACOS_CACHE" "MNN.framework"
7676
# Download and unzip OpenCV iOS package
7777
download_and_unzip "$OPENCV_IOS_URL" "$MACOS_CACHE" "opencv2.framework"
7878

79+
if [ -n "$VERSION" ]; then
80+
TAG="-$VERSION"
81+
else
82+
TAG=""
83+
fi
84+
7985

8086
TOOLCHAIN="$PWD/toolchain/ios.toolchain.cmake"
8187

82-
BUILD_DIR="build/inspireface-ios"
88+
BUILD_DIR="build/inspireface-ios$TAG"
8389

8490
mkdir -p "$BUILD_DIR"
8591

0 commit comments

Comments
 (0)