This commit is contained in:
parent
a4a651133b
commit
2aa8ea0180
4 changed files with 37 additions and 16 deletions
20
tips/distrobox/kde/configure.sh
Executable file
20
tips/distrobox/kde/configure.sh
Executable 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"
|
|
@ -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
|
17
tips/distrobox/kde/use_distrobox.md
Normal file
17
tips/distrobox/kde/use_distrobox.md
Normal 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
|
|
@ -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`
|
Loading…
Reference in a new issue