{"id":31863316,"url":"https://github.com/kdroidfilter/composedesktoplinuxdeps","last_synced_at":"2026-03-03T22:31:20.303Z","repository":{"id":309978948,"uuid":"1038257212","full_name":"kdroidFilter/ComposeDesktopLinuxDeps","owner":"kdroidFilter","description":"Gradle plugin for Compose Desktop that injects Linux package dependencies into jpackage outputs (DEB): add Depends:/Requires: automatically.","archived":false,"fork":false,"pushed_at":"2025-10-22T07:15:37.000Z","size":66,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-22T09:16:36.381Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://plugins.gradle.org/plugin/io.github.kdroidfilter.compose.linux.packagedeps","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kdroidFilter.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-14T22:03:38.000Z","updated_at":"2025-10-22T07:15:18.000Z","dependencies_parsed_at":"2025-08-15T00:16:09.361Z","dependency_job_id":"b6486b8d-b86a-41e3-ab08-43fc535be147","html_url":"https://github.com/kdroidFilter/ComposeDesktopLinuxDeps","commit_stats":null,"previous_names":["kdroidfilter/gradlecomposedesktoplinuxdeps","kdroidfilter/composedesktoplinuxdeps"],"tags_count":7,"template":false,"template_full_name":"cortinico/kotlin-gradle-plugin-template","purl":"pkg:github/kdroidFilter/ComposeDesktopLinuxDeps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdroidFilter%2FComposeDesktopLinuxDeps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdroidFilter%2FComposeDesktopLinuxDeps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdroidFilter%2FComposeDesktopLinuxDeps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdroidFilter%2FComposeDesktopLinuxDeps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kdroidFilter","download_url":"https://codeload.github.com/kdroidFilter/ComposeDesktopLinuxDeps/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kdroidFilter%2FComposeDesktopLinuxDeps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30064288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T18:21:05.932Z","status":"ssl_error","status_checked_at":"2026-03-03T18:20:59.341Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-12T18:01:24.584Z","updated_at":"2026-03-03T22:31:20.288Z","avatar_url":"https://github.com/kdroidFilter.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 Compose Desktop Linux Package Deps (DEB)\n\nSmall Gradle plugin for **Compose Desktop** that automatically adds Debian **`Depends:`** to the `.deb` generated by **jpackage**.\nCan write `StartupWMClass` into `.desktop` files to fix dock/taskbar icons (fixes [JBR-9114](https://youtrack.jetbrains.com/issue/JBR-9114)).\n\n## 🛠 Requirements\n\n* 🐧 Debian/Ubuntu build env with `dpkg-deb` → `sudo apt-get install dpkg-dev`\n* 💻 Using Compose Multiplatform packaging (`packageDeb` / `packageReleaseDeb`)\n\n## 🚀 Quick start\n\n```kotlin\n// build.gradle.kts\nplugins {\n    id(\"io.github.kdroidfilter.compose.linux.packagedeps\") version \"\u003cversion\u003e\"\n}\n\nlinuxDebConfig {\n    // add dependencies to DEBIAN/control\n    debDepends.set(listOf(\"libqt5widgets5t64\", \"libx11-6\"))\n\n    // if you want to add dependencies with alternatives for compatibility with older OSes, add them like this:\n    debDepends.set(\n        listOf(\n            \"libqt5core5t64 | libqt5core5a\",\n            \"libqt5gui5t64 | libqt5gui5\",\n            \"libqt5widgets5t64 | libqt5widgets5\",\n        )\n    )\n    // set StartupWMClass to fix dock/taskbar icon\n    startupWMClass.set(\"MainClassKt\")\n\n    //for Ubuntu 24 t64 dependencies compatibility with older OSes, see below Under Known jpackage issue: Ubuntu t64 transition\n    enableT64AlternativeDeps.set(true)\n}\n```\n\nBuild as usual:\n\n```bash\n./gradlew packageDeb\n# or\n./gradlew packageReleaseDeb\n```\n\n## ⚙️ What it does\n\n* 🔍 Finds the jpackage-generated `.deb`\n* ➕ Adds/merges a `Depends:` line in `DEBIAN/control` (de-duplicates)\n* 🖊 Writes `StartupWMClass=` into `.desktop` files if configured\n* 📦 Rebuilds the `.deb`\n\n## 🐞 Troubleshooting\n\n* ❌ **`dpkg-deb not found`** → `sudo apt-get install dpkg-dev`\n* 📂 **No `.deb` found** → run `./gradlew packageDeb` first\n* 🖼 **Dock icon not matching** → set `startupWMClass` (e.g., `\"MainClassKt\"`)\n\n## ❗ Known jpackage issue: Ubuntu t64 transition\n\nThere is an upstream jpackage quirk related to the Ubuntu/Debian time_t (t64) transition:\n- When you build on Ubuntu 24.04 (or newer), jpackage resolves and injects dependencies as they exist on the build host. It writes t64 package names (for example: libasound2t64, libpng16-16t64) into the Depends field. Those packages don’t exist on Ubuntu 22.04, so the .deb won’t install there.\n- Conversely, if you build on Ubuntu 22.04, the produced .deb depends on non‑t64 packages (libasound2, libpng16-16). On Ubuntu 24.04, the system prefers the t64 variants, which can cause incompatibility.\n\nHow this plugin helps\n- Set linuxDebConfig.enableT64AlternativeDeps = true to make the plugin rewrite the existing Depends line generated by jpackage into alternatives that work on both sides:\n  - libasound2t64 (and optional version) → libasound2t64 (same version) | libasound2\n  - libpng16-16t64 (and optional version) → libpng16-16t64 (same version) | libpng16-16\n  - libasound2 (and optional version) → libasound2t64 (same version) | libasound2\n  - libpng16-16 (and optional version) → libpng16-16t64 (same version) | libpng16-16\n- Only the dependencies already present in DEBIAN/control (added by jpackage) are rewritten. Entries you add via debDepends are not modified.\n\nExamples\n- Before (built on Ubuntu 24.04):\n  Depends: libasound2t64, libpng16-16t64, …\n- After (with enableT64AlternativeDeps=true):\n  Depends: libasound2t64 | libasound2, libpng16-16t64 | libpng16-16, …\n\n## 📜 License\n\nMIT — see `LICENSE`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdroidfilter%2Fcomposedesktoplinuxdeps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkdroidfilter%2Fcomposedesktoplinuxdeps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkdroidfilter%2Fcomposedesktoplinuxdeps/lists"}