mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-29 05:21:37 +03:00
Fix boards-manager install issues on Linux and Windows (#5898)
* Fix packaged python paths for Windows Fixes #5881 The path to python.exe on Windows needs to change depending on whether it is installed via the boards manager or GIT (similar to the compiler paths). Adjust accordingly. * Add python-placeholder to make boardsmanager happy An empty "python" directory will be created by the boards-manager installer. Required because all archs need all tools defined. * Make the placeholder include a symlink for "python" * Fix esptool windows python path Fixes a typo in the python path for Windows for upload. * Fix esptool windows python path Fixes a typo in the python path for Windows for upload. * Fix tools path when in GIT mode for upload
This commit is contained in:
committed by
Develo
parent
0f4c9f7103
commit
4b596d8fb1
@ -74,8 +74,13 @@ fi
|
||||
# handles tool paths differently when package is installed in hardware folder
|
||||
cat $srcdir/platform.txt | \
|
||||
$SED 's/runtime.tools.xtensa-lx106-elf-gcc.path={runtime.platform.path}\/tools\/xtensa-lx106-elf//g' | \
|
||||
$SED 's/runtime.tools.python.path=.*//g' | \
|
||||
$SED 's/runtime.tools.esptool.path={runtime.platform.path}\/tools\/esptool//g' | \
|
||||
$SED 's/tools.esptool.path={runtime.platform.path}\/tools\/esptool/tools.esptool.path=\{runtime.tools.esptool.path\}/g' | \
|
||||
$SED 's/^tools.esptool.cmd=.*//g' | \
|
||||
$SED 's/^tools.esptool.network_cmd=.*//g' | \
|
||||
$SED 's/^#tools.esptool.cmd=/tools.esptool.cmd=/g' | \
|
||||
$SED 's/^#tools.esptool.network_cmd=/tools.esptool.network_cmd=/g' | \
|
||||
$SED 's/tools.mkspiffs.path={runtime.platform.path}\/tools\/mkspiffs/tools.mkspiffs.path=\{runtime.tools.mkspiffs.path\}/g' |\
|
||||
$SED 's/recipe.hooks.core.prebuild.2.pattern.*//g' |\
|
||||
$SED "s/version=.*/version=$ver/g" |\
|
||||
|
Reference in New Issue
Block a user