-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
41 lines (29 loc) · 1.05 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
echo "copy provision"
mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
cp NESEMUAPPSTORE.mobileprovision ~/Library/MobileDevice/Provisioning\ Profiles/
ls ~/Library/MobileDevice/Provisioning\ Profiles/
OBJROOT="${OBJROOT}/DependentBuilds"
TARGET_NAME="NES_EMU_IOS"
APP_NAME="NES_EMU"
PROJECT_NAME="NES_EMU.xcodeproj"
ARCHIVE_EXPORTOPTION="./archive/exportOptions.plist"
OUT_FOLDER="./output"
ARCHIVE_FILE="${OUT_FOLDER}/${APP_NAME}.xcarchive"
#echo "WORKSPACE_NAME->"
#echo ${WORKSPACE_NAME}
#echo "APP_NAME->"
#echo ${APP_NAME}
#echo "ARCHIVE_FILE->"
#echo ${ARCHIVE_FILE}
#Clean output folder
echo "ARCHIVE_FILE->"
echo ${ARCHIVE_FILE}
rm -rf ${OUT_FOLDER}
mkdir "output"
echo "Process archive..."
#進行一個阿凱敷的動作
xcodebuild -project ${PROJECT_NAME} -scheme ${TARGET_NAME} -sdk iphoneos -configuration AppStoreDistribution archive -archivePath ${ARCHIVE_FILE}
#進行一個挨批誒的輸出的動作
xcodebuild -exportArchive -archivePath ${ARCHIVE_FILE} -exportOptionsPlist ${ARCHIVE_EXPORTOPTION} -exportPath ${OUT_FOLDER}
#cd output
#ls