rusefi/misc/install_st/make_package2.bat

16 lines
854 B
Batchfile
Raw Normal View History

2021-10-15 17:57:45 -07:00
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"
2022-08-23 17:50:55 -07:00
rem Just safer not to have the folder at all
rm -rf silent_st_drivers/DFU_Driver
2021-10-15 17:57:45 -07:00
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
2022-08-23 17:50:55 -07:00
cp install_elevated_STM32Bootloader.bat silent_st_drivers\DFU_Driver
2021-10-15 17:57:45 -07:00
rem compress 'silent_st_drivers' folder
"C:\Program Files\7-Zip\7z.exe" a silent_st_drivers2.exe -mmt -mx5 -sfx silent_st_drivers