-
-
Notifications
You must be signed in to change notification settings - Fork 120
/
create_release_zip.ps1
82 lines (72 loc) · 3.03 KB
/
create_release_zip.ps1
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
82
# Execute in an esp-idf enabled PowerShell
# This script will create a combined zip file containing binaries for all supported esp32 boards
$release_foldername = "DroneBridge_ESP32_v2.0RC3"
$release_name_zip = "DroneBridge_ESP32_v2.0RC3.zip"
mkdir $release_foldername
mkdir build
cp .\flashing_instructions.txt $release_foldername
rm -Recurse .\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 -Recurse .\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 -Recurse .\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 -Recurse .\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 -Recurse .\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 -Recurse .\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 (Test-Path $release_name_zip) {
Remove-Item $release_name_zip -verbose
}
Compress-Archive -Path $release_foldername -DestinationPath $release_name_zip
rm -R $release_foldername