-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.bat
More file actions
40 lines (35 loc) · 844 Bytes
/
build.bat
File metadata and controls
40 lines (35 loc) · 844 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
@echo off
if "%1" == "" (
set subdir="testnet"
) else if "%1" == "testnet" (
set subdir="testnet"
) else if "%1" == "mainnet" (
set subdir="mainnet"
) else (
echo Usage:
echo build [args]
echo.
echo args: ^(Default is testnet^)
echo testnet build testnet
echo mainnet build mainnet
exit /b
)
echo Delete Existing Files...
pushd "%cd%\android" || exit /B 1
for /F %%F in ("*") do (
del /q "%%~F"
)
for /D %%D in ("*") do (
IF NOT "%%D" == "testnet" IF NOT "%%D" == "mainnet" rd /s /q "%%~D"
)
popd
echo Copying %subdir% Files...
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.