{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "starling-build-starling--package-starling-desktop-deb",
 "repo": "starling-build/starling",
 "repo_url": "https://github.com/starling-build/starling",
 "repo_slug": "starling-build-starling",
 "title": "Package the Starling desktop as a Debian package",
 "page_title": "How to package the Starling desktop as a Debian package with Starling",
 "summary": "Stage the desktop and build a .deb that adds a Starling session to the login screen.",
 "who": "A Debian or Ubuntu packager who needs an installable build of the Starling desktop for testing on other machines.",
 "problem": "Turning the built shell and apps into an installable package means assembling the layout, adding control metadata, and wiring the session entry.",
 "outcome": "A starling-desktop .deb is produced that installs the desktop under /usr/lib/starling and /usr/share/starling and adds a Starling login session.",
 "steps": [
  "Read docs/BUILDING.md for toolchain setup and the Ubuntu 26.04 workarounds",
  "Run `cd shell && swift build -c release` and build the apps with `swift build -c release` in each app directory",
  "Run `build/stage.sh` to assemble the layout into .stage/",
  "Run `build/package-desktop.sh` to produce the starling-desktop .deb"
 ],
 "agent_prompt": "In the starling repo, build the shell and apps with swift build -c release, then run build/stage.sh and build/package-desktop.sh. Expected output: a starling-desktop_ _amd64.deb file in the output directory. Verify that the package installs files under /usr/lib/starling and /usr/share/starling before reporting success.",
 "agents": [
  "any"
 ],
 "difficulty": "Advanced",
 "time": "5 hours",
 "basis": "readme",
 "caveat": "The README says the engine host_release build must exist before packaging, so the engine checkout has to be built first.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "swift",
 "requirements": [
  "A Linux machine, ideally Ubuntu, since the desktop is developed and tested on Ubuntu and docs/BUILDING.md covers its setup",
  "A Swift toolchain, needed for the swift build commands",
  "A built starling-engine checkout placed next to this repo",
  "A free GPU with no display manager or compositor running, for the desktop run step"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/starling-build-starling/package-starling-desktop-deb/",
 "md": "https://dedupedai.com/use-cases/starling-build-starling/package-starling-desktop-deb/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/starling-build-starling--package-starling-desktop-deb.json",
 "api_version": "v1"
}
