diff --git a/debian/bootstrap b/debian/bootstrap index 964895e..3810f40 100755 --- a/debian/bootstrap +++ b/debian/bootstrap @@ -19,6 +19,14 @@ source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/m # Install packages source <(curl -fsSL https://raw.githubusercontent.com/mapitman/linux-bootstrap/main/debian/install-packages) +# Dev packages +printf "Install development tools? " +read -r REPLY /dev/null; then + echo "deb [signed-by=/etc/apt/keyrings/mise-archive-keyring.gpg arch=$(dpkg --print-architecture)] https://mise.jdx.dev/deb stable main" | sudo tee /etc/apt/sources.list.d/mise.list > /dev/null +else + echo "WARNING: Failed to register mise package repository" +fi + +sudo apt-get update + +# Install dev packages +sudo apt-get install -y \ +autoconf \ +autogen \ +bison \ +build-essential \ +checkinstall \ +cmake \ +default-jdk \ +dialog \ +dotnet-sdk-10.0 \ +flex \ +golang \ +hugo \ +jq \ +just \ +libcurl4-openssl-dev \ +libssl-dev \ +libtool \ +make \ +mercurial \ +mise \ +pandoc \ +pylint \ +python-is-python3 \ +python3-autopep8 \ +python3-pip \ +twine \ +universal-ctags \ +zlib1g-dev + +# Activate mise for bash and zsh configurations +echo "Adding mise activation hooks to shell configurations..." +if [ -f "$HOME/.bashrc" ] && ! grep -q "mise activate bash" "$HOME/.bashrc"; then + printf '\n# Activate mise version manager\neval "$(mise activate bash)"\n' >> "$HOME/.bashrc" +fi + +if [ -f "$HOME/.zshrc" ] && ! grep -q "mise activate zsh" "$HOME/.zshrc"; then + printf '\n# Activate mise version manager\neval "$(mise activate zsh)"\n' >> "$HOME/.zshrc" +fi diff --git a/test/docker/run-tests-debian.sh b/test/docker/run-tests-debian.sh index 9764c17..0dcfb19 100644 --- a/test/docker/run-tests-debian.sh +++ b/test/docker/run-tests-debian.sh @@ -7,6 +7,9 @@ cd /home/testuser/linux-bootstrap echo "Testing Debian package installation..." bash debian/install-packages +echo "Testing Debian dev package installation..." +bash debian/install-dev-packages + echo "" echo "Verifying packages are installed..." PACKAGES=( @@ -43,6 +46,14 @@ PACKAGES=( zoxide zsh zsh-doc + build-essential + cmake + default-jdk + dotnet-sdk-10.0 + golang + just + mise + pandoc ) MISSING=()