Skip to content

Commit 74aab7e

Browse files
committed
unix: shows core version like under windows when git is unavailable
1 parent ae0258e commit 74aab7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ compiler.elf2hex.extra_flags=
7070

7171
## generate file with git version number
7272
## needs bash, git, and echo
73-
recipe.hooks.core.prebuild.1.pattern=bash -c "mkdir -p {build.path}/core && echo \#define ARDUINO_ESP8266_GIT_VER `cd {runtime.platform.path}; git describe --tags 2>/dev/null || echo ffffffff` >{build.path}/core/core_version.h"
73+
recipe.hooks.core.prebuild.1.pattern=bash -c "mkdir -p {build.path}/core && echo \#define ARDUINO_ESP8266_GIT_VER `cd {runtime.platform.path}; git describe --tags 2>/dev/null || echo nix-{version}` >{build.path}/core/core_version.h"
7474
## windows-compatible version may be added later - warn: this string below has only been tested with "wine cmd.exe"
7575
recipe.hooks.core.prebuild.1.pattern.windows=cmd /c echo #define ARDUINO_ESP8266_GIT_VER win-{version} > {build.path}\\core\\core_version.h
7676

0 commit comments

Comments
 (0)