|
63 | 63 | - [Overloads](#overloads) |
64 | 64 | - [Parameters](#parameters) |
65 | 65 | - [Examples](#examples) |
66 | | -- [Linux packaging and Qt dependencies](#linux-packaging-and-qt-dependencies) |
67 | | - - [Developer setup on Ubuntu/Debian](#developer-setup-on-ubuntudebian) |
68 | | - - [Linking your app to Qt runtime packages](#linking-your-app-to-qt-runtime-packages) |
69 | | - - [Using Conveyor](#using-conveyor) |
70 | 66 | - [📄 License](#-license) |
71 | 67 | - [🤝 Contribution](#-contribution) |
72 | 68 | - [👨💻 Author](#-author) |
@@ -615,66 +611,6 @@ application { |
615 | 611 |
|
616 | 612 | See full demo: demo/src/jvmMain/kotlin/com/kdroid/composetray/demo/TrayAppDemo.kt |
617 | 613 |
|
618 | | -## Linux packaging and Qt dependencies |
619 | | - |
620 | | -This library uses **Qt** on Linux. When you package your app for Linux, you must declare the required Qt runtime packages so the OS will install them if necessary. |
621 | | - |
622 | | -> **Heads-up:** In most cases, the only package that will be newly downloaded is **`libdbusmenu-qt5-2`** (≈300 KB). |
623 | | -> Qt itself is widely used by many desktop applications and often comes preinstalled with the desktop environment, so users typically already have the necessary Qt runtime packages. |
624 | | -
|
625 | | ---- |
626 | | - |
627 | | -### Developer setup on Ubuntu/Debian |
628 | | - |
629 | | -If you are developing or running locally on Ubuntu/Debian, ensure the runtime package is installed: |
630 | | - |
631 | | -```sh |
632 | | -sudo apt-get install -y libdbusmenu-qt5-2 |
633 | | -``` |
634 | | - |
635 | | ---- |
636 | | - |
637 | | -### Linking your app to Qt runtime packages |
638 | | - |
639 | | -If you use **jpackage** (Compose Multiplatform native distributions), you can use the dedicated Gradle plugin to declare the required dependencies automatically in the generated `.deb` control file: |
640 | | - |
641 | | -* Plugin: [GradleComposeDesktopLinuxDeps](https://github.com/kdroidFilter/GradleComposeDesktopLinuxDeps) |
642 | | -* Apply it in your Gradle build (Kotlin DSL): |
643 | | - |
644 | | -```kotlin |
645 | | -plugins { |
646 | | - // ... your existing plugins |
647 | | - id("io.github.kdroidfilter.compose.linux.packagedeps") version "0.2.2" |
648 | | -} |
649 | | -``` |
650 | | - |
651 | | -Then configure it as follows: |
652 | | - |
653 | | -```kotlin |
654 | | -linuxDebConfig { |
655 | | - addComposeNativeTrayDeps() |
656 | | -} |
657 | | -``` |
658 | | - |
659 | | -For more information about distro compatibility and advanced options, please see the [plugin README](https://github.com/kdroidFilter/GradleComposeDesktopLinuxDeps). |
660 | | - |
661 | | - |
662 | | -### Using Conveyor |
663 | | - |
664 | | -If you package with Conveyor, declare the dependencies in your `conveyor.conf`: |
665 | | - |
666 | | -```hocon |
667 | | -app.linux.debian.control { |
668 | | - Depends: [ |
669 | | - "libqt5core5t64 | libqt5core5a", |
670 | | - "libqt5gui5t64 | libqt5gui5", |
671 | | - "libqt5widgets5t64 | libqt5widgets5", |
672 | | - "libdbusmenu-qt5-2" |
673 | | - ] |
674 | | -} |
675 | | -``` |
676 | | - |
677 | | - |
678 | 614 | ## 📄 License |
679 | 615 |
|
680 | 616 | This library is licensed under the MIT License. The Linux module uses LGPL v2.1. |
|
0 commit comments