From c74f2482f04c2fa58d7b13d303613057a167d412 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Fri, 15 Oct 2021 20:57:45 -0400 Subject: [PATCH] Better Windows build-in DFU #3338 --- misc/install_st/.gitignore | 6 ++++-- misc/install_st/make_package.bat | 1 + misc/install_st/make_package2.bat | 13 +++++++++++++ misc/install_st/readme.md | 4 +++- 4 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 misc/install_st/make_package2.bat diff --git a/misc/install_st/.gitignore b/misc/install_st/.gitignore index 47828897f1..a23dfe8eaf 100644 --- a/misc/install_st/.gitignore +++ b/misc/install_st/.gitignore @@ -1,3 +1,5 @@ +silent_st_drivers silent_st_drivers.exe -Virtual comport driver -ST-LINK_USB_V2_1_Driver \ No newline at end of file + +silent_st_drivers2 +silent_st_drivers2.exe \ No newline at end of file diff --git a/misc/install_st/make_package.bat b/misc/install_st/make_package.bat index 3513d5c8d6..5394b4f53f 100644 --- a/misc/install_st/make_package.bat +++ b/misc/install_st/make_package.bat @@ -4,6 +4,7 @@ rm -rf silent_st_drivers/ST-LINK_USB_V2_1_Driver rm -rf silent_st_drivers/"Virtual comport driver" cp -r "C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK_USB_V2_1_Driver" silent_st_drivers +rem https://github.com/rusefi/rusefi_external_utils/blob/master/stsw-stm32102_1_4_0.zip cp -r "C:\Program Files (x86)\STMicroelectronics\Software\Virtual comport driver" silent_st_drivers rem compress 'silent_st_drivers' folder diff --git a/misc/install_st/make_package2.bat b/misc/install_st/make_package2.bat new file mode 100644 index 0000000000..f1c9ab29b6 --- /dev/null +++ b/misc/install_st/make_package2.bat @@ -0,0 +1,13 @@ +rem Depends on ST Link and ST VCP being installed manually + +rm -rf silent_st_drivers/ST-LINK_USB_V2_1_Driver +rm -rf silent_st_drivers/"Virtual comport driver" + +cp -r "C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK_USB_V2_1_Driver" silent_st_drivers +rem https://github.com/rusefi/rusefi_external_utils/blob/master/stsw-stm32102_1_4_0.zip +cp -r "C:\Program Files (x86)\STMicroelectronics\Software\Virtual comport driver" silent_st_drivers + +cp -r "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\Drivers\DFU_Driver" silent_st_drivers + +rem compress 'silent_st_drivers' folder +"C:\Program Files\7-Zip\7z.exe" a silent_st_drivers2.exe -mmt -mx5 -sfx silent_st_drivers \ No newline at end of file diff --git a/misc/install_st/readme.md b/misc/install_st/readme.md index 1cc7190030..b1ebe57160 100644 --- a/misc/install_st/readme.md +++ b/misc/install_st/readme.md @@ -1 +1,3 @@ -Here we have the tool to generate https://rusefi.com/build_server/st_files/silent_st_drivers.exe file \ No newline at end of file +Here we have the tool to generate https://rusefi.com/build_server/st_files/silent_st_drivers.exe file + +Here we have the tool to generate https://rusefi.com/build_server/st_files/silent_st_drivers2.exe file \ No newline at end of file