forked from deividAlfa/stm32_soldering_iron_controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMake_Release.bat
52 lines (48 loc) · 2.14 KB
/
Make_Release.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
@echo off
set RAR="C:\Program Files\WinRAR\rar.exe"
IF EXIST RELEASE rd Release /s /q
md Release
cd Release
move "..\BOARDS\KSGER\v1.5\STM32F103\SSD1306.bin" "KSGER_v1_5_SSD1306.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\KSGER\v1.5\STM32F103\ST7565.bin" "KSGER_v1_5_ST7565.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\KSGER\v2\STM32F101\SSD1306.bin" "KSGER_v2_SSD1306.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\KSGER\v3\STM32F101\SSD1306.bin" "KSGER_v3_SSD1306.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\KSGER\v3\STM32F101\ST7565.bin" "KSGER_v3_ST7565.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\Quicko\STM32F072\SSD1306.bin" "Quicko_STM32F072_SSD1306.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\Quicko\STM32F072\ST7565.bin" "Quicko_STM32F072_ST7565.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\Quicko\STM32F103\SSD1306.bin" "Quicko_STM32F103_SSD1306.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
move "..\BOARDS\Quicko\STM32F103\ST7565.bin" "Quicko_STM32F103_ST7565.bin" >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a KSGER_v1_5_SSD1306.zip KSGER_v1_5_SSD1306.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a KSGER_v1_5_ST7565.zip KSGER_v1_5_ST7565.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a KSGER_v2_SSD1306.zip KSGER_v2_SSD1306.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a KSGER_v3_SSD1306.zip KSGER_v3_SSD1306.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a KSGER_v3_ST7565.zip KSGER_v3_ST7565.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a Quicko_STM32F072_SSD1306.zip Quicko_STM32F072_SSD1306.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a Quicko_STM32F072_ST7565.zip Quicko_STM32F072_ST7565.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a Quicko_STM32F103_SSD1306.zip Quicko_STM32F103_SSD1306.bin >nul
IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
%RAR% a Quicko_STM32F103_ST7565.zip Quicko_STM32F103_ST7565.bin >nul
IF %%ERRORLEVEL EQU 0 GOTO :ERROR
echo Done!
TIMEOUT 3 >NUL
GOTO :END
:ERROR
echo Error! First run Building_script.bat and select "Compile all"
PAUSE
:END