-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathinstallApp.bat
More file actions
28 lines (17 loc) · 787 Bytes
/
installApp.bat
File metadata and controls
28 lines (17 loc) · 787 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
@echo off
set APP_NAME=%1
if not defined APP_NAME GOTO USAGE
git clone https://github.com/TekMonksGitHub/monkshu.git
git clone https://github.com/TekMonksGitHub/%APP_NAME%.git
copy ".\%APP_NAME%\*.*" .\monkshu\
if EXIST ".\%APP_NAME%\backend\apps\%APP_NAME%" move ".\%APP_NAME%\backend\apps\%APP_NAME%" ".\monkshu\backend\apps\%APP_NAME%"
if EXIST ".\%APP_NAME%\frontend\apps\%APP_NAME%" move ".\%APP_NAME%\frontend\apps\%APP_NAME%" ".\monkshu\frontend\apps\%APP_NAME%"
if EXIST ".\%APP_NAME%\install\" move ".\%APP_NAME%\install" ".\monkshu\install"
rmdir /q /s ".\%APP_NAME%"
move .\monkshu ".\%APP_NAME%"
if EXIST ".\%APP_NAME%\install\install.bat" call ".\%APP_NAME%\install\install.bat"
echo Done.
goto END
:USAGE
echo Usage: installApp.bat [name of the application]
:END