diff --git a/tools/idf_tools.py b/tools/idf_tools.py index c005ecd6f4..7cdd182366 100755 --- a/tools/idf_tools.py +++ b/tools/idf_tools.py @@ -96,6 +96,7 @@ PLATFORM_FROM_NAME = { # Windows PLATFORM_WIN32: PLATFORM_WIN32, 'Windows-i686': PLATFORM_WIN32, + 'Windows-x86': PLATFORM_WIN32, PLATFORM_WIN64: PLATFORM_WIN64, 'Windows-x86_64': PLATFORM_WIN64, 'Windows-AMD64': PLATFORM_WIN64, diff --git a/tools/tools.json b/tools/tools.json index 54249d7dcc..5bbed7e8b7 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -334,17 +334,17 @@ "version_regex": "([0-9.]+)", "versions": [ { - "name": "1.0", + "name": "1.0.1", "status": "recommended", "win32": { - "sha256": "83a83ac7a246cbae93884db7c5f2ef9a7607d602340b1cf1e64ec2a925071748", - "size": 11289, - "url": "https://dl.espressif.com/dl/idf-exe-v1.0.zip" + "sha256": "53eb6aaaf034cc7ed1a97d5c577afa0f99815b7793905e9408e74012d357d04a", + "size": 11297, + "url": "https://dl.espressif.com/dl/idf-exe-v1.0.1.zip" }, "win64": { - "sha256": "83a83ac7a246cbae93884db7c5f2ef9a7607d602340b1cf1e64ec2a925071748", - "size": 11289, - "url": "https://dl.espressif.com/dl/idf-exe-v1.0.zip" + "sha256": "53eb6aaaf034cc7ed1a97d5c577afa0f99815b7793905e9408e74012d357d04a", + "size": 11297, + "url": "https://dl.espressif.com/dl/idf-exe-v1.0.1.zip" } } ] diff --git a/tools/windows/idf_exe/CMakeLists.txt b/tools/windows/idf_exe/CMakeLists.txt index ba7e940af7..7693412e91 100644 --- a/tools/windows/idf_exe/CMakeLists.txt +++ b/tools/windows/idf_exe/CMakeLists.txt @@ -1,10 +1,11 @@ cmake_minimum_required(VERSION 3.5) project(idfexe) -set(VERSION 1.0) +set(VERSION 1.0.1) set(ARCHIVE_NAME idf-exe-v${VERSION}.zip) add_executable(idf idf_main.c) +target_compile_definitions(idf PRIVATE -DVERSION=\"${VERSION}\") set_target_properties(idf PROPERTIES C_STANDARD 99) target_link_libraries(idf "-lshlwapi") diff --git a/tools/windows/idf_exe/idf_main.c b/tools/windows/idf_exe/idf_main.c index a8d1aec541..3a8e6dcfbb 100644 --- a/tools/windows/idf_exe/idf_main.c +++ b/tools/windows/idf_exe/idf_main.c @@ -18,7 +18,6 @@ #include #define LINESIZE 1024 -#define VERSION "1.0" static void fail(LPCSTR message, ...) __attribute__((noreturn)); @@ -48,7 +47,8 @@ int main(int argc, LPTSTR argv[]) (StrCmp(argv[1], TEXT("--version")) == 0 || StrCmp(argv[1], TEXT("-v")) == 0)) { LPCSTR msg = VERSION "\n"; - WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), msg, lstrlen(msg), NULL, NULL); + DWORD written; + WriteFile(GetStdHandle(STD_OUTPUT_HANDLE), msg, lstrlen(msg), &written, NULL); return 0; } diff --git a/tools/windows/tool_setup/tools_fallback.json b/tools/windows/tool_setup/tools_fallback.json index 6b1585c8a4..2422f2f4e4 100644 --- a/tools/windows/tool_setup/tools_fallback.json +++ b/tools/windows/tool_setup/tools_fallback.json @@ -333,17 +333,17 @@ "version_regex": "([0-9.]+)", "versions": [ { - "name": "1.0", + "name": "1.0.1", "status": "recommended", "win32": { - "sha256": "83a83ac7a246cbae93884db7c5f2ef9a7607d602340b1cf1e64ec2a925071748", - "size": 11289, - "url": "https://dl.espressif.com/dl/idf-exe-v1.0.zip" + "sha256": "53eb6aaaf034cc7ed1a97d5c577afa0f99815b7793905e9408e74012d357d04a", + "size": 11297, + "url": "https://dl.espressif.com/dl/idf-exe-v1.0.1.zip" }, "win64": { - "sha256": "83a83ac7a246cbae93884db7c5f2ef9a7607d602340b1cf1e64ec2a925071748", - "size": 11289, - "url": "https://dl.espressif.com/dl/idf-exe-v1.0.zip" + "sha256": "53eb6aaaf034cc7ed1a97d5c577afa0f99815b7793905e9408e74012d357d04a", + "size": 11297, + "url": "https://dl.espressif.com/dl/idf-exe-v1.0.1.zip" } } ]