-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstaller.bat
65 lines (48 loc) · 1.44 KB
/
installer.bat
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@echo off
color 2
cls
ECHO this installation might take about 2 to 10 minutes
ECHO .
ECHO .
git clone https://github.com/nobody48sheldor/fuseeinator2.0
cd position_calculation
ECHO first installing the packge "pyinstaller" in order to compile the python code
pip install pyinstaller
ECHO .
ECHO .
ECHO compiling...
python -m PyInstaller --onefile -w --noconsole -F --icon=icon_software_2.ico fuseeinator_software_2.0_soft.py
cd dist
move fuseeinator_software_2.0_soft.exe ../..
cd ../..
SET /p z= Would you like to delete the unnecessary file (not developper "mode") ? (Y or N)
if %z% == Y GOTO delete
if %z% == N GOTO software
if %z% !==! Y (if %m% !==! N (ECHO please enter a right answer (Y or N)))
:software
SET /p m= Would you like to launch the software ? (Y or N)
if %m% == Y start fuseeinator_software_2.0_soft.exe
if %m% == N exit
if %m% !==! Y (if %m% !==! N (ECHO please enter a right answer (Y or N)))
exit
:delete
cd position_calculation
del ROCKET_calculation.bat /q
del backup.txt /q
del fi.txt /q
del fucntion.py /q
del fuseeinator.py /q
del fuseeinator_runner.py /q
del fuseeinator_software.py /q
del fuseeinator_software.exe /q
del fuseeinator_software.spec /q
del fuseeinator_software_2.0.py /q
del fuseeinator_software_2.0_soft.py /q
del fuseeinator_software_2.0_soft.spec /q
del icon_software.ico /q
del icon_software.png /q
del icon_software_2.ico /q
del 'type.txt' /q
del waterrocket.py /q
del waterrocket_runner.py /q
del wr.txt/q