forked from Tencent/matrix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
codecc.sh
25 lines (15 loc) · 1.06 KB
/
codecc.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
cd ./matrix/matrix-android
./gradlew clean compileDebugJavaWithJavac -PforCoverity --no-daemon
./gradlew :matrix-io-canary:build
./gradlew :matrix-sqlite-lint:build
cd ../matrix-iOS
TARGET_NAME=Matrix
# 模拟器
xcodebuild clean -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk iphonesimulator VALID_ARCHS="arm64 armv7 i386 x86_64"
xcodebuild -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk iphonesimulator VALID_ARCHS="arm64 armv7 i386 x86_64"
# iphone真机
xcodebuild clean -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk iphoneos VALID_ARCHS="arm64 armv7 i386 x86_64"
xcodebuild -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk iphoneos VALID_ARCHS="arm64 armv7 i386 x86_64"
# macOS
xcodebuild clean -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk macosx VALID_ARCHS="x86_64"
xcodebuild -project Matrix/Matrix.xcodeproj -target $TARGET_NAME -configuration Release -sdk macosx VALID_ARCHS="x86_64"