Skip to content

Commit c5a7e78

Browse files
committed
Snapshot
1 parent 7a56c6f commit c5a7e78

File tree

3 files changed

+51
-15
lines changed

3 files changed

+51
-15
lines changed

cores/esp8266/core_version.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
#ifndef ARDUINO_ESP8266_GIT_VER
2-
#define ARDUINO_ESP8266_GIT_VER 0x00000000
3-
#endif
4-
5-
#ifndef ARDUINO_ESP8266_GIT_DESC
6-
#define ARDUINO_ESP8266_GIT_DESC unspecified
7-
#endif
8-
9-
// ARDUINO_ESP8266_RELEASE is defined for released versions as a string containing the version name, i.e. "2_3_0_RC1"
10-
// ARDUINO_ESP8266_RELEASE is used in the core internally. Please use ESP.getCoreVersion() function instead.
11-
12-
// ARDUINO_ESP8266_RELEASE_<version number> are defined for releases, for use in #ifdef... constructs
1+
#define ARDUINO_ESP8266_GIT_VER 0x7a56c6f4
2+
#define ARDUINO_ESP8266_GIT_DESC 2.7.2-247-g7a56c6f4

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"name": "framework-arduinoespressif8266",
3-
"description": "Arduino Wiring-based Framework (ESP8266 Core)",
4-
"url": "https://github.com/esp8266/Arduino",
5-
"version": "3.0.0-dev"
3+
"description": "ESP8266 Core - Current git version snapshot + some patches",
4+
"version": "3.0.0-git7a56c6f4",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/mcspr/arduino-esp8266",
8+
"branch": "7a56c6f4"
9+
}
610
}

pio_snapshot_package.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
set -x -e -v
4+
5+
git restore --source HEAD -- cores/esp8266/core_version.h
6+
git restore --source HEAD -- package.json
7+
8+
version=$(git rev-parse --short=8 HEAD)
9+
desc=$(git describe --tags)
10+
11+
cat <<EOF > package.json
12+
{
13+
"name": "framework-arduinoespressif8266",
14+
"description": "ESP8266 Core - Current git version snapshot + some patches",
15+
"version": "3.0.0-git${version}",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/mcspr/arduino-esp8266",
19+
"branch": "${version}"
20+
}
21+
}
22+
EOF
23+
24+
cat <<EOF > cores/esp8266/core_version.h
25+
#define ARDUINO_ESP8266_GIT_VER 0x$version
26+
#define ARDUINO_ESP8266_GIT_DESC $desc
27+
EOF
28+
29+
zip -v -r framework-arduinoespressif8266-git$version.zip . \
30+
-x "framework-arduinoespressif8266-git$version.zip" \
31+
-x '.gitignore' \
32+
-x '.gitmodules' \
33+
-x '.git/*' \
34+
-x 'doc/*' \
35+
-x 'package/*' \
36+
-x 'tools/esptool/*' \
37+
-x 'tools/pyserial/*' \
38+
-x '**/doc/*' \
39+
-x '**/.git/*' \
40+
-x '**/.github/*' \
41+
-x '**/.gitignore' \
42+
-x '**/.gitmodules'

0 commit comments

Comments
 (0)