forked from Picovoice/picovoice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcopy_assets.sh
33 lines (30 loc) · 1.23 KB
/
copy_assets.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
# Android resources
if [ ! -d "./assets/contexts/android" ]
then
echo "Creating Android demo context directory..."
mkdir -p ./assets/contexts/android
fi
echo "Copying Android demo context..."
cp ../../resources/rhino/resources/contexts/android/smart_lighting_android.rhn ./assets/contexts/android/smart_lighting_android.rhn
if [ ! -d "./assets/keyword_files/android" ]
then
echo "Creating Android demo keyword directory..."
mkdir -p ./assets/keyword_files/android
fi
echo "Copying Android demo keyword file..."
cp ../../resources/porcupine/resources/keyword_files/android/picovoice_android.ppn ./assets/keyword_files/android/picovoice_android.ppn
# iOS resources
if [ ! -d "./assets/contexts/ios" ]
then
echo "Creating iOS demo context directory..."
mkdir -p ./assets/contexts/ios
fi
echo "Copying iOS demo context..."
cp ../../resources/rhino/resources/contexts/ios/smart_lighting_ios.rhn ./assets/contexts/ios/smart_lighting_ios.rhn
if [ ! -d "./assets/keyword_files/ios" ]
then
echo "Creating iOS demo keyword directory..."
mkdir -p ./assets/keyword_files/ios
fi
echo "Copying iOS demo keyword file..."
cp ../../resources/porcupine/resources/keyword_files/ios/picovoice_ios.ppn ./assets/keyword_files/ios/picovoice_ios.ppn