Windows: ZIP artifacts should be downloaded to IDF_TOOLS_PATH/dist
Bug description
espup install downloads ZIP diles to location under rustup.
Downloading file 'C:\Users\georgik\.rustup\toolchains\esp\riscv32-esp-elf\esp-12.2.0_20230208/riscv32-esp-elf.zip' from 'https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-w64-mingw32.zip'
Prefered location should be %IDF_TOOLS_PATH%/dist. This way idf-installer and esp-idf tools can pick up the already downloaded archive.
Bug description
espup installdownloads ZIP diles to location under rustup.
Downloading file 'C:\Users\georgik\.rustup\toolchains\esp\riscv32-esp-elf\esp-12.2.0_20230208/riscv32-esp-elf.zip' from 'https://github.com/espressif/crosstool-NG/releases/download/esp-12.2.0_20230208/riscv32-esp-elf-12.2.0_20230208-x86_64-w64-mingw32.zip'Prefered location should be
%IDF_TOOLS_PATH%/dist. This wayidf-installerandesp-idftools can pick up the already downloaded archive.
This was decided in https://github.com/esp-rs/espup/discussions/154, we don't assume that the user has any IDF installed and all the installation takes place under $HOME/.rustup/toolchains/<name>
The point of this issue is to reuse what ESP-IDF has already installed if the user has IDF_TOOLS_PATH defined.