-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·41 lines (34 loc) · 1014 Bytes
/
package.sh
File metadata and controls
executable file
·41 lines (34 loc) · 1014 Bytes
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
41
#!/bin/bash
SHOULD_GENERATE_DOCS=${1-true}
DEPLOY_DIR="cloudmine-ios"
ARCHIVE_NAME="$DEPLOY_DIR.tgz"
echo "Removing old build directory..."
rm -rf "./ios/build"
echo "Re-building release framework..."
env CC='' xcodebuild -scheme "CloudMine Universal Framework" -configuration Release -workspace cm-ios.xcworkspace
# Generate File Documentation
if $SHOULD_GENERATE_DOCS ; then
echo "Beginning documentation generation..."
cd ./ios
doxygen ios/Doxyfile
rm -rf docs/html/me.cloudmine.ios.docset
rm docs/html/Makefile
rm docs/html/Nodes.xml
rm docs/html/Tokens.xml
rm docs/html/Info.plist
cd ../
else
echo "Skipping documentation generation..."
fi
echo "Copying files to deploy..."
mkdir $DEPLOY_DIR
cp -R "ios/build/Release-iphoneuniversal/CloudMine.framework" $DEPLOY_DIR
cp -R "ios/docs" $DEPLOY_DIR
cp *.md $DEPLOY_DIR
cp LICENSE $DEPLOY_DIR
echo "Tarballing deploy directory..."
if [ -e $ARCHIVE_NAME ]; then
rm $ARCHIVE_NAME
fi
tar -cvf $ARCHIVE_NAME $DEPLOY_DIR
rm -rf $DEPLOY_DIR