From d07602786f731eb2efb41051981f9266b48b0ea3 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 12 Jun 2023 23:06:15 +0200 Subject: [PATCH] Added rustup. Code cleanup --- update.sh | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/update.sh b/update.sh index 628bd4d..b3ffbac 100755 --- a/update.sh +++ b/update.sh @@ -5,7 +5,7 @@ set -e printf -- '\033[33m Installing system packages\n\033[37m' sudo apt update && sudo apt -y upgrade sudo apt -y install ninja-build gettext cmake unzip curl python3 python3-pip python3-venv \ - build-essential libssl-dev libffi-dev python3-dev file tmux + build-essential libssl-dev libffi-dev python3-dev file tmux libudev-dev # Install VirtualHere client printf -- '\033[33m Installing VirtualHere client\n\033[37m' @@ -37,10 +37,23 @@ make CMAKE_BUILD_TYPE=RelWithDebInfo cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb if [ -d ~/neovim ]; then rm -rf ~/neovim; fi +# Install rust +printf -- '\033[33m Installing Rust\n\033[37m' +cd ~ +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +rustup self update +rustup update stable + +# Install rust embedded stuff +printf -- '\033[33m Installing Rust embedded stuff\n\033[37m' +cd ~ +rustup target add thumbv6m-none-eabi +cargo install elf2uf2-rs --locked +cargo install probe-run + # Install tree sitter cli printf -- '\033[33m Installing tree sitter cli\n\033[37m' -cd ~ && -sudo apt install -y cargo +cd ~ cargo install tree-sitter-cli # Install ripgrep @@ -113,20 +126,6 @@ cd ~ curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt install -y nodejs -# # Install NvChad -# printf -- '\033[33m Installing NvChad\n\033[37m' -# if [ ! -d ~/.config/nvim ]; -# then git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1 -# ln -sf ~/code_server/config/nvim/lua/custom ~/.config/nvim/lua/custom -# fi - -# Install astronvim -# printf -- '\033[33m Installing astronvim\n\033[37m' -# if [ ! -d ~/.config/nvim ]; -# then git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim; -# ln -sf ~/code_server/config/nvim/lua/user ~/.config/nvim/lua/user -# fi - # Install platformio printf -- '\033[33m Installing platformio\n\033[37m' pip3 install platformio