Skip to content

Commit

Permalink
feat(pio): 增加非代理安装状态确认
Browse files Browse the repository at this point in the history
  • Loading branch information
fishros committed Jul 10, 2024
1 parent 2ef483f commit f5aa351
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tools/tool_install_micros_fishbot_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,22 @@ def install_nodejs(self):
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkspiffs"
echo "当前进度: 7/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mklittlefs"
echo "\n开始确认ESP32开发依赖库安装状态~"
export http_proxy= && export https_proxy=
echo "当前进度: 1/7"
$HOME.platformio/penv/bin/pio pkg install --global --platform "platformio/espressif32"
echo "当前进度: 2/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/contrib-piohome"
echo "当前进度: 3/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/framework-arduinoespressif32"
echo "当前进度: 4/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-scons"
echo "当前进度: 5/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkfatfs"
echo "当前进度: 6/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mkspiffs"
echo "当前进度: 7/7"
$HOME.platformio/penv/bin/pio pkg install --global --tool "platformio/tool-mklittlefs"
""".format(user_home)
FileUtils.new('/tmp/', 'install_pio.sh',install_sh)
CmdTask('sudo -u {} bash /tmp/install_pio.sh'.format(user), os_command=True).run()
Expand Down

0 comments on commit f5aa351

Please sign in to comment.