Update tips
All checks were successful
check / check (push) Successful in 36s

This commit is contained in:
Florian RICHER 2024-09-06 19:29:30 +02:00
parent a4a651133b
commit 2aa8ea0180
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
4 changed files with 37 additions and 16 deletions

20
tips/distrobox/kde/configure.sh Executable file
View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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`