-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathgenerate_release.cmd
35 lines (32 loc) · 1.23 KB
/
generate_release.cmd
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
@ECHO off
cls
:start
echo.
echo 1. Generate Flipper Zero Wifi Devboard (ESP32-S2) Release
echo 2. Generate Generic ESP32 Release
set /p choice=Type the number for the release you would like to generate:
if '%choice%'=='' echo "%choice%" is not a valid option please choose either 1 or 2
if '%choice%'=='1' goto DevBoard
if '%choice%'=='2' goto Generic
echo.
goto start
:DevBoard
echo Generating a Flipper Zero Wifi Devboard (ESP32-S2) Release
for %%h in (ESP32-S2-FlipperZeroWifiDevBoard-Linux ESP32-S2-FlipperZeroWifiDevBoard-Mac ESP32-S2-FlipperZeroWifiDevBoard-Windows) do (
copy /Y .\build\bootloader\bootloader.bin .\Release\Generated\%%h\FW\
copy /Y .\build\partition_table\partition-table.bin .\Release\Generated\%%h\FW\
copy /Y .\build\esp32-wifi-penetration-tool.bin .\Release\Generated\%%h\FW\
)
goto end
:Generic
echo Generating a Generic ESP32 Release
for %%h in (ESP32-Generic-Linux ESP32-Generic-Mac ESP32-Generic-Windows) do (
copy /Y .\build\bootloader\bootloader.bin .\Release\Generated\%%h\FW\
copy /Y .\build\partition_table\partition-table.bin .\Release\Generated\%%h\FW\
copy /Y .\build\esp32-wifi-penetration-tool.bin .\Release\Generated\%%h\FW\
)
goto end
:end
echo Release generated
pause
exit