-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
41 lines (29 loc) · 1.01 KB
/
install.bat
File metadata and controls
41 lines (29 loc) · 1.01 KB
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
@echo off
SET settings_file="%CD%\settings.ini"
if not exist "%settings_file%" GOTO settingsNotFound
SET /p android_studio_installation_dir=< "%settings_file%"
SET dest_folder=%android_studio_installation_dir%\plugins\android\lib\templates\
SET templates_source_folder_name=%CD%\templates
SET templates_destination_folder=MAGDV
if not exist "%dest_folder%" GOTO destinationNotFound
SET target_ide_templates_dir=%dest_folder%%templates_destination_folder%
if exist "%target_ide_templates_dir%" (
echo "Clear Installed templates... v(o.o)v"
rd /q /s "%target_ide_templates_dir%"
)
echo "Make templates folder />__<\"
md "%target_ide_templates_dir%"
echo "Install templates... {(>_<)}"
xcopy /S "%templates_source_folder_name%" "%target_ide_templates_dir%"
echo "Templates installed (^ _ ^)"
pause
exit
:settingsNotFound
echo "put android studio directory here" >> "%settings_file%"
echo "Please fill settings.ini file and run again :3"
pause
exit
:destinationNotFound
echo "IDE Templates folder not found (x_x)"
pause
exit