-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
create_release_zip.sh
81 lines (71 loc) · 2.8 KB
/
create_release_zip.sh
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/bin/bash
release_foldername="DroneBridge_ESP32_vXX"
release_name_zip="DroneBridge_ESP32_vXX.zip"
mkdir "$release_foldername"
mkdir build
cp flashing_instructions.txt "$release_foldername"
rm -rf build
idf.py fullclean
cp sdkconfig_esp32 sdkconfig
idf.py build
mkdir "$release_foldername/esp32"
cp build/flash_args "$release_foldername/esp32/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32"
cp build/bootloader/bootloader.bin "$release_foldername/esp32"
cp build/www.bin "$release_foldername/esp32"
cp build/partition_table/partition-table.bin "$release_foldername/esp32"
rm -rf build
idf.py fullclean
cp sdkconfig_s2 sdkconfig
idf.py build
mkdir "$release_foldername/esp32s2"
cp build/flash_args "$release_foldername/esp32s2/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32s2"
cp build/bootloader/bootloader.bin "$release_foldername/esp32s2"
cp build/www.bin "$release_foldername/esp32s2"
cp build/partition_table/partition-table.bin "$release_foldername/esp32s2"
rm -rf build
idf.py fullclean
cp sdkconfig_s3 sdkconfig
idf.py build
mkdir "$release_foldername/esp32s3"
cp build/flash_args "$release_foldername/esp32s3/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32s3"
cp build/bootloader/bootloader.bin "$release_foldername/esp32s3"
cp build/www.bin "$release_foldername/esp32s3"
cp build/partition_table/partition-table.bin "$release_foldername/esp32s3"
rm -rf build
idf.py fullclean
cp sdkconfig_c3 sdkconfig
idf.py build
mkdir "$release_foldername/esp32c3"
cp build/flash_args "$release_foldername/esp32c3/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32c3"
cp build/bootloader/bootloader.bin "$release_foldername/esp32c3"
cp build/www.bin "$release_foldername/esp32c3"
cp build/partition_table/partition-table.bin "$release_foldername/esp32c3"
rm -rf build
idf.py fullclean
cp sdkconfig_c3_serial_via_JTAG sdkconfig
idf.py build
mkdir "$release_foldername/esp32c3_USBSerial"
cp build/flash_args "$release_foldername/esp32c3_USBSerial/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32c3_USBSerial"
cp build/bootloader/bootloader.bin "$release_foldername/esp32c3_USBSerial"
cp build/www.bin "$release_foldername/esp32c3_USBSerial"
cp build/partition_table/partition-table.bin "$release_foldername/esp32c3_USBSerial"
rm -rf build
idf.py fullclean
cp sdkconfig_c6 sdkconfig
idf.py build
mkdir "$release_foldername/esp32c6"
cp build/flash_args "$release_foldername/esp32c6/flash_args.txt"
cp build/db_esp32.bin "$release_foldername/esp32c6"
cp build/bootloader/bootloader.bin "$release_foldername/esp32c6"
cp build/www.bin "$release_foldername/esp32c6"
cp build/partition_table/partition-table.bin "$release_foldername/esp32c6"
if [ -f "$release_name_zip" ]; then
rm "$release_name_zip"
fi
zip -r "$release_name_zip" "$release_foldername"
rm -rf "$release_foldername"