-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.sh
More file actions
33 lines (30 loc) · 807 Bytes
/
build.sh
File metadata and controls
33 lines (30 loc) · 807 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
if [ -z $1 ]; then
SUBDIR="testnet"
elif [ $1 = 'testnet' ]; then
SUBDIR="testnet"
elif [ $1 = 'mainnet' ]; then
SUBDIR="mainnet"
else
echo Usage:
echo '\tbuild [args]'
echo
echo args: \(Default is testnet\)
echo '\ttestnet\t\tbuild testnet'
echo '\tmainnet\t\tbuild mainnet'
fi
echo Delete Existing Files...
for D in `find ./android/ ! -regex '^./android/testnet\(/.*\)?' ! -regex '^./android/mainnet\(/.*\)?' ! -regex '^./android/'`
do
rm -rf $D
done
echo Copying $SUBDIR Files...
cp -rf ./android/$SUBDIR/. ./android/
# xcopy %cd%\android\%subdir% %cd%\android /s /e /q >nul
echo DONE
echo
echo If you want to run Debug mode :
echo react-native run-android
echo
echo If you want to Build signed Apk file :
echo react-native run-android --variant=release
echo