Skip to content

Commit d094286

Browse files
author
Ilia Platone
committed
Update update_firmware.sh
1 parent 3c3bcd1 commit d094286

3 files changed

Lines changed: 4 additions & 46 deletions

File tree

app.rc

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
IDI_ICON1 ICON DISCARDABLE "icon.ico"
2-
IDI_DATA1 TEXT DISCARDABLE "xc10.json"
3-
IDI_DATA2 TEXT DISCARDABLE "xc12.json"
4-
IDI_DATA3 TEXT DISCARDABLE "xc14.json"
5-
IDI_DATA4 TEXT DISCARDABLE "xc16.json"
6-
IDI_DATA5 TEXT DISCARDABLE "xc18.json"
7-
IDI_DATA6 TEXT DISCARDABLE "xc1.json"
8-
IDI_DATA7 TEXT DISCARDABLE "xc20.json"
9-
IDI_DATA8 TEXT DISCARDABLE "xc22.json"
10-
IDI_DATA9 TEXT DISCARDABLE "xc24.json"
11-
IDI_DATA10 TEXT DISCARDABLE "xc26.json"
12-
IDI_DATA11 TEXT DISCARDABLE "xc28.json"
13-
IDI_DATA12 TEXT DISCARDABLE "xc2.json"
14-
IDI_DATA13 TEXT DISCARDABLE "xc30.json"
15-
IDI_DATA14 TEXT DISCARDABLE "xc32.json"
16-
IDI_DATA15 TEXT DISCARDABLE "xc4.json"
17-
IDI_DATA16 TEXT DISCARDABLE "xc6.json"
18-
IDI_DATA17 TEXT DISCARDABLE "xc8.json"

resource.qrc

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +0,0 @@
1-
<RCC>
2-
<qresource prefix="/icons">
3-
<file>icon.ico</file>
4-
</qresource>
5-
<qresource prefix="/data">
6-
<file>xc10.json</file>
7-
<file>xc12.json</file>
8-
<file>xc14.json</file>
9-
<file>xc16.json</file>
10-
<file>xc18.json</file>
11-
<file>xc1.json</file>
12-
<file>xc20.json</file>
13-
<file>xc22.json</file>
14-
<file>xc24.json</file>
15-
<file>xc26.json</file>
16-
<file>xc28.json</file>
17-
<file>xc2.json</file>
18-
<file>xc30.json</file>
19-
<file>xc32.json</file>
20-
<file>xc4.json</file>
21-
<file>xc6.json</file>
22-
<file>xc8.json</file>
23-
24-
</qresource>
25-
</RCC>
26-

update_firmware.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
#!/bin/bash
22
url=$1
3-
curl --dns-servers 8.8.8.8 "${url}?product=xc*" | jq .data | tr -d '"' | base64 -d | tr -s ',' '\n' | cut -d '/' -f 2 | cut -d '-' -f 1 | while read line; do curl --dns-servers 8.8.8.8 "${url}?product=$line&download=on" -o $line.json; done
3+
curl --resolve "iliaplatone.com:443:192.71.211.119" "${url}?product=xc*" | jq .data | tr -d '"' | base64 -d | tr -s ',' '\n' | cut -d '/' -f 2 | cut -d '-' -f 1 | while read line; do curl --resolve "iliaplatone.com:443:192.71.211.119" "${url}?product=$line&download=on" -o $line.json; done
44
i=1
5-
echo "IDI_ICON1 ICON DISCARDABLE \"icon.ico\"" > app.rc
5+
echo "IDI_ICON1 ICON DISCARDABLE \"icon.ico\"
6+
67
echo "<RCC>
78
<qresource prefix=\"/icons\">
89
<file>icon.ico</file>
10+
<file>check.ico</file>
911
</qresource>
1012
<qresource prefix=\"/data\">" > resource.qrc
1113
for file in *.json; do echo "<file>"$file"</file>" >> resource.qrc;

0 commit comments

Comments
 (0)