From 2aa8ea01800175e1bcc034bc037c0230289920e3 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 6 Sep 2024 19:29:30 +0200 Subject: [PATCH] Update tips --- tips/distrobox/kde/configure.sh | 20 ++++++++++++++++++++ tips/distrobox/kde/distrobox.ini | 8 -------- tips/distrobox/kde/use_distrobox.md | 17 +++++++++++++++++ tips/use_distrobox.md | 8 -------- 4 files changed, 37 insertions(+), 16 deletions(-) create mode 100755 tips/distrobox/kde/configure.sh create mode 100644 tips/distrobox/kde/use_distrobox.md delete mode 100644 tips/use_distrobox.md diff --git a/tips/distrobox/kde/configure.sh b/tips/distrobox/kde/configure.sh new file mode 100755 index 0000000..9d3d952 --- /dev/null +++ b/tips/distrobox/kde/configure.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +if [[ $PATH != *".local/bin"* ]]; then + echo "Append .local/bin to PATH in ~/.bashrc" + echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc + echo "Reload shell" + source ~/.bashrc +fi + +echo "Installing kde-builder" +curl 'https://invent.kde.org/sdk/kde-builder/-/raw/master/scripts/initial_setup.sh?ref_type=heads' > ~/initial_setup.sh +bash ~/initial_setup.sh && rm ~/initial_setup.sh + +echo "Run initial setup from kde-builder" +kde-builder --initial-setup + +echo "Install missing dependencies" +sudo dnf install qt6-qttools-devel + +echo "Configuration DONE" \ No newline at end of file diff --git a/tips/distrobox/kde/distrobox.ini b/tips/distrobox/kde/distrobox.ini index 6d7a3a3..d5101d2 100644 --- a/tips/distrobox/kde/distrobox.ini +++ b/tips/distrobox/kde/distrobox.ini @@ -2,13 +2,5 @@ image=quay.io/fedora/fedora:rawhide home="${HOME}/.distrobox_home/kdedev" nvidia=true -replace=true root=false pull=true -additional_packages="git python3-dbus python3-pyyaml python3-setproctitle" -init_hooks=mkdir -p ~/.local/share -init_hooks=git clone https://invent.kde.org/sdk/kde-builder.git ~/.local/share/kde-builder || git -C ~/.local/share/kde-builder pull --ff-only -init_hooks=mkdir -p ~/.local/bin -init_hooks=ln -sf ~/.local/share/kde-builder/kde-builder ~/.local/bin -init_hooks=~/.local/bin/kde-builder --generate-config -init_hooks=yes | ~/.local/bin/kde-builder --install-distro-packages \ No newline at end of file diff --git a/tips/distrobox/kde/use_distrobox.md b/tips/distrobox/kde/use_distrobox.md new file mode 100644 index 0000000..910cb5a --- /dev/null +++ b/tips/distrobox/kde/use_distrobox.md @@ -0,0 +1,17 @@ +# How to develop on KDE + +## First configuration + +1. `distrobox assemble` + > You can add --replace to recreate distrobox container +2. `distrobox enter kdedev` +3. `bash configure.sh` +4. `kde-builder run solid` + +## Usefull config in ~/.config/kdesrc-buildrc + +Autogenerate editor configuration + +- generate-clion-project-config +- generate-vscode-project-config +- generate-qtcreator-project-config \ No newline at end of file diff --git a/tips/use_distrobox.md b/tips/use_distrobox.md deleted file mode 100644 index 267b5ad..0000000 --- a/tips/use_distrobox.md +++ /dev/null @@ -1,8 +0,0 @@ -# How use distrobox to work on common distro - -## How to develop on KDE - -1. `cd distrobox/kde` -2. `distrobox assemble` -3. `distrobox enter kdedev` -4. `kde-builder run solid` \ No newline at end of file