feat(packaging): add deb and rpm desktop targets #5139
main fromrefs/pull/5139/head·opened View on GitHubWhat Changed Added additional outputs to packaging script.
Why Allows output of 2 linux packaging systems Deb and RPM issue https://github.com/pingdotgg/t3code/issues/4030
Checklist This PR is small and focused I explained what changed and why I included before/after screenshots for any UI changes I included a video for animation/interaction changes
Note
Medium Risk
Touches the release workflow and artifact matrix; a packaging or rpmbuild failure blocks Linux release assets, but changes are confined to desktop distribution with no auth or data-path impact.
Overview
Linux desktop releases now ship .deb and .rpm installers alongside the existing AppImage, using one electron-builder run per Linux matrix job instead of separate jobs per format (avoids upload-artifact name collisions).
The desktop packager accepts comma-separated Linux targets (AppImage,deb,rpm) via resolveLinuxTargets, adds deb/rpm dependency lists and Linux package metadata (maintainer, vendor, synopsis), and enriches staged package metadata for fpm. Release CI switches the Linux x64 target to the combined list, ensures rpmbuild when RPM is requested, and collects/publishes *.deb and *.rpm on GitHub Releases. Root npm scripts (dist:desktop:deb / rpm → packaging-output/), marketing download cards, and release/docs note that in-app Linux updates remain AppImage-only; deb/rpm users upgrade via their package manager.
Note
Add .deb and .rpm Linux desktop packaging targets to the release pipeline#
- Extends the Linux electron-builder config in
scripts/build-desktop-artifact.tsto accept comma-separated targets (e.g.AppImage,deb,rpm) and emit all formats in a single run, with appropriate metadata and dependency declarations for each format. - Updates the release workflow to build and publish
.deband.rpmartifacts alongside the AppImage, and installsrpmbuildwhen the RPM target is included. - Adds
.deband.rpmdownload cards to the marketing downloads page. - Documents the new
dist:desktop:debanddist:desktop:rpmnpm scripts and updated release artifact behavior.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- scripts/build-desktop-artifact.ts line 2023OutdatedResolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -1521,3 +1551,20 @@15211551 : (desktopPackageJson.productName ?? "T3 Code");15221552 }152315531554+function quotePosixShellArgument(value: string): string {1555+ return `'${value.replaceAll("'", `'\\''`)}'`;1556+}1557+1558+export function renderLinuxHeadlessLauncher(version: string): string {1559+ const installDir = `/opt/${resolveDesktopProductName(version)}`;1560+ const desktopExecutable = `${installDir}/t3code`;1561+ const serverEntry = `${installDir}/resources/app.asar.unpacked/apps/server/dist/bin.mjs`;1562+1563+ return [1564+ "#!/bin/sh",1565+ "set -eu",1566+ "export ELECTRON_RUN_AS_NODE=1",1567+ `exec ${quotePosixShellArgument(desktopExecutable)} ${quotePosixShellArgument(serverEntry)} "$@"`,1568+ "",1569+ ].join("\n");1570+}
Wrong headless launcher entry path#
High Severity
The
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 1b6acb146881dd0ab12696ae0582c6e1a03a7aa4. Configure [here](https://www.cursor.com/dashboard/bugbot).renderLinuxHeadlessLauncherfunction generates a path for the server entry (resources/app.asar.unpacked/...) that incorrectly assumes the server bundle is unpacked. Linux builds (deb/rpm) do not unpack this bundle, causing the/usr/bin/t3CLI launcher to fail with anENOENTerror. we have 4 different prs open to add .deb releases.
- this one
- https://github.com/pingdotgg/t3code/pull/4900
- https://github.com/pingdotgg/t3code/pull/4887
- https://github.com/pingdotgg/t3code/pull/4071
Like I really want this, but we should at least try to like keep just one of these and discuss it. @bigpod98 @benthecarman @NaveDanan @chukfinley
You seem to also want this @LouisDeconinck.
how about we keep just one of these open and talk about it. much higher likelihood it would be merged then.
we have 4 different prs open to add .deb releases.
- this one
- feat(desktop): Add a Linux .deb to releases #4900
- feat(release): publish a Linux .deb alongside the AppImage #4887
- feat(release): publish Linux .deb alongside AppImage #4071
Like I really want this, but we should at least try to like keep just one of these and discuss it. @bigpod98 @benthecarman @NaveDanan @chukfinley
You seem to also want this @LouisDeconinck.
how about we keep just one of these open and talk about it. much higher likelihood it would be merged then.
Agreed mine also contains rpm code and specific t3 entrypoint for server, happy to bring some of this work to another as mine doesnt contian an actions as i was planning to build action seperately to split the concerns across multiple prs as they are seperate concerns afterall if you guys wanna help out with this one im fine with that as well
It seems like all of our prs have been ignored so I'm not sure unifying will do anything
we have 4 different prs open to add .deb releases.
- this one
- feat(desktop): Add a Linux .deb to releases #4900
- feat(release): publish a Linux .deb alongside the AppImage #4887
- feat(release): publish Linux .deb alongside AppImage #4071
Like I really want this, but we should at least try to like keep just one of these and discuss it. @bigpod98 @benthecarman @NaveDanan @chukfinley You seem to also want this @LouisDeconinck. how about we keep just one of these open and talk about it. much higher likelihood it would be merged then.
Agreed mine also contains rpm code and specific t3 entrypoint for server, happy to bring some of this work to another as mine doesnt contian an actions as i was planning to build action seperately to split the concerns across multiple prs as they are seperate concerns afterall if you guys wanna help out with this one im fine with that as well
Nice! Ok if we can work together we stand a better chance in having this merged. Theo and co have their own work so if we do this together this we might get noticed. We should probably look into someone that has already worked something related to the existing targets and thus is vouched. Not the main maintainer team like Theo, Jullius and co, but other maintainers. Reach out and ask for help. Probably not just @ them here tho.
It seems like all of our prs have been ignored so I'm not sure unifying will do anything
I don't think it's a case of being ignored. It's just the high volume of prs open that makes prioritizing difficult. Let's reach out to someone that has already worked on stuff like targets and talk to them. That would very likely increase out chances of having our pr seen over the other prs. Again, let's not just start @ ing people tho. Im going to check out who else work on this. But for now let's centralize our attention on this pr I think.
Agreed on consolidating, and I'm fine with this one being the base — I have no attachment to my PR being the one that lands.
Concrete state of mine (#4071) so it's useful input rather than a fifth opinion: I just rebased it onto current
main(it had gone stale and conflicting) and folded in the pieces it was missing, so it's nowMERGEABLEwith green checks and covers:--targetaccepts a comma-separated list, so the existing Linux matrix entry emitsAppImage,debfrom one electron-builder runhomepage+maintaineron the stagedpackage.json(FpmTargeterrors without both)- deb/rpm
dependslists — taken from this PR, credit to @bigpod98 - release workflow: collect step + both
action-gh-releasefile lists get*.deb - docs + the download-page
.debcard — taken from #4900, credit to @benthecarman - unit tests over the target split, maintainer format, and per-format
depends
The piece that only exists in mine is the release-workflow wiring, and it's the part with the non-obvious trap: adding a second Linux matrix entry (
linux/deb/x64) makes the upload step producedesktop-linux-x64twice, which is the artifact-name collision that #1655 got closed over. Building both targets in the one existing entry avoids it by construction — same runner, same artifact name, no extra release wall-clock, andartifactName's${ext}keeps the files apart. Also easy to miss: there are twosoftprops/action-gh-releaseblocks (first release / subsequent releases) and both need*.deb, otherwise the package builds and never ships.So whichever PR ends up as the base: if it's this one, I'm happy to open the workflow wiring as the follow-up PR you mentioned you'd planned, or just hand the diff over — say the word. If a maintainer would rather take the one that's already end-to-end, #4071 is rebased and ready today.
On finding someone who has touched this area —
git logon the two files, excluding the core team:scripts/build-desktop-artifact.ts: after Julius, the outside contributors who landed changes are the authors of #4824 (cut ~300MB off the installed app) and #3816 (desktop native optional-dependency packaging).- The Linux-specific desktop change most adjacent to this is #5015, which registered the
t3code://scheme on Linux — that one's Julius, i.e. core team.
Agreed on not mass-@ing people. #4824 and #3816 look like the two non-core folks who've actually shipped in this file, so one of them reviewing is probably the realistic path.
One open question that applies to whichever PR lands:
Maintainer:is a mandatory Debian control field, so it needs a real address. I usedhello@t3.toolsas a placeholder rather than invent a mailbox that bounces; this PR usessupport@t3.gg. Worth having a maintainer just tell us which one they want — it's a one-line change either way.ok from what I could find most of the stuff was done by the main team, theo, jullius and maria and co. of those 3 I think maria might be our best bet to get this looked at (please don't be mad I said this maria, I love you, I just think you are the most approachable right now hahah).
Other than maria I found this chuks-qua guy that did some work on making sure the desktop building tooling worked on windows. Not exactly what we were looking for but might be adjacent enough. I will try to reach out to them.
One thing we need to make sure is it builds x86 arm64 not just x86. Also i do not think this is being ignored ignored, they clearly have priorities and they are sticking to them but i do think a unified pr would still work best as sorting trough these is just confusing and forces them to think which is better.
Let me know if you need anything from my end
On the pinging i think maria might be the best bet she is maintaining or was maintaining the archlinux aur PKGBUILD file
One thing we need to make sure is it builds x86 arm64 not just x86
Worth separating: Linux arm64 doesn't exist in the release matrix at all today, not even for the AppImage. The matrix is macOS arm64, macOS x64, Linux x64, Windows x64 — and the Windows arm64 entry is sitting there commented out. So arm64 Linux is a pre-existing gap rather than something the .deb work introduces; a
.debPR that doesn't ship arm64 leaves things exactly as consistent as they are now.The build script side is already there:
PLATFORM_CONFIG.linux.archChoicesis["x64", "arm64"]andresolveResourceMonitorRustTargetsmaps arm64 toaarch64-unknown-linux-gnu, so--platform linux --arch arm64 --target AppImage,debproducesT3-Code-<version>-arm64.debwithout further changes.What's missing is CI: it needs a second matrix entry on an arm64 Ubuntu runner. That entry is not an artifact-name collision — the upload name is
desktop-${platform}-${arch}, sodesktop-linux-arm64is distinct fromdesktop-linux-x64. (The collision only appears if you add a second entry with the same arch to build a different target, which is the trap #1655 hit and the reason to emit both targets from the one existing entry instead.)My read is that arm64 belongs in its own PR, because the blocker there is a decision only a maintainer can make — which arm64 runner, and the extra release wall-clock and cost of a fourth full desktop build. Bundling that decision into the packaging change gives a reviewer two reasons to defer instead of one. Happy to write that follow-up once the packaging part lands.
Also agreed on your other point — "ignored" is the wrong frame; four PRs doing the same thing is precisely what makes it expensive to pick one up.
One thing we need to make sure is it builds x86 arm64 not just x86. Also i do not think this is being ignored ignored, they clearly have priorities and they are sticking to them but i do think a unified pr would still work best as sorting trough these is just confusing and forces them to think which is better.
Let me know if you need anything from my end
On the pinging i think maria might be the best bet she is maintaining or was maintaining the archlinux aur PKGBUILD file
Im reaching out to chuks and maria on twitter, before we go nuclear with a ping here.
ok @bigpod98 I've looking at your pr we should probably have different commands for each of the targets so
dist:desktop:deb:x64 dist:desktop:deb:arm64 dist:desktop:rpm:x64 dist:desktop:rpm:arm64
keeping the dist:desktop:deb and dist:desktop:deb for convenience is good, the other ones like windows and macos also have it. this would keep our pr in line with what's already there.
we should probably have different commands for each of the targets
Agreed, that's the existing convention (
dist:desktop:dmg+:arm64/:x64, same forwin). Done on my side just now — #4071 has:dist:desktop:deb # host arch dist:desktop:deb:arm64 dist:desktop:deb:x64 dist:desktop:rpm # host arch dist:desktop:rpm:arm64 dist:desktop:rpm:x64One detail worth copying: the bare script should not pass
--arch.resolveBuildOptionsfalls back togetDefaultArch(platform), so leaving it off gives host-arch behaviour, which is whatdist:desktop:dmgdoes — pinning--arch x64there would make it the odd one out (and wrong on an arm64 machine). I had it pinned; that's fixed.Note this makes the arm64
.deb/.rpmlocally buildable already — it's only the release matrix that stays x64, for the runner reasons above.also bigpod do you think we should the launcher thing you did? this could be broken out into another smaller pr. again just to keep the maintainer team more ok with this pr. honestly I think we should go this way, if anything to possibly bump the pr size from M to S which I know is something the maintainer team cares about.
On the size point, the current labels are worth knowing before anyone reshuffles work to chase them:
PR diff files label #4071 +155/-3 7 size:S#5139 +170/-2 4 size:M#4900 +64/-3 6 size:M#4887 +75/-2 6 size:MSo the sizer isn't counting raw lines — #4071 has the largest diff of the four and still lands on
S, while #4900 is a quarter of that and lands onM. Looks like tests and docs are discounted (scripts/*.test.tsanddocs/**are ~85 of those 155 lines). Which means splitting the launcher out of #5139 may well shrink it, but adding the tests and docs it's missing probably shrinks it more, not less.Independent of the label, splitting the headless
/usr/bin/t3launcher out is the right call on its own merits — it's an entrypoint change, not packaging metadata, and it's the one piece in these four PRs that changes what users get onPATH. That deserves its own review rather than riding along with a.deb.also bigpod do you think we should the launcher thing you did? this could be broken out into another smaller pr. again just to keep the maintainer team more ok with this pr. honestly I think we should go this way, if anything to possibly bump the pr size from M to S which I know is something the maintainer team cares about.
Sure, i think its worth to have but yea having it seperated isnt bad
On the size point, the current labels are worth knowing before anyone reshuffles work to chase them:
PR diff files label #4071 +155/-3 7
size:S#5139 +170/-2 4size:M#4900 +64/-3 6size:M#4887 +75/-2 6size:MSo the sizer isn't counting raw lines — #4071 has the largest diff of the four and still lands onS, while #4900 is a quarter of that and lands onM. Looks like tests and docs are discounted (scripts/*.test.tsanddocs/**are ~85 of those 155 lines). Which means splitting the launcher out of #5139 may well shrink it, but adding the tests and docs it's missing probably shrinks it more, not less.Independent of the label, splitting the headless
/usr/bin/t3launcher out is the right call on its own merits — it's an entrypoint change, not packaging metadata, and it's the one piece in these four PRs that changes what users get onPATH. That deserves its own review rather than riding along with a.deb.Makes sense
also bigpod do you think we should the launcher thing you did? this could be broken out into another smaller pr. again just to keep the maintainer team more ok with this pr. honestly I think we should go this way, if anything to possibly bump the pr size from M to S which I know is something the maintainer team cares about.
Sure, i think its worth to have but yea having it seperated isnt bad
I think it's worth to have yeah, it's a good idea. But if we get this merged you will likely be vouched and we will have this little cadre of ours here that will be able to work to together again to have that idea in.
We seem to agree on the shape now — packaging in one PR, launcher separate, arm64 separate. The only thing still undecided is which PR is the one, and that's the thing actually costing us a reviewer. Concrete proposal, two options, I'll do the work in either:
A — this PR is the base. I open a PR against @bigpod98's branch (or just post the diff for you to cherry-pick) with the release-workflow wiring, the docs, the download-page card and the tests. That's ~85 lines, most of it test/doc, so per the labels above it should not push you past
S. #4071 gets closed once it's in.B — #4071 is the base. It already contains everything in this PR except the launcher (dependency lists and the rpm target came from here, with credit in the description). @bigpod98 keeps the launcher as the follow-up he wanted anyway, and #4900 / #4887 close.
Mechanically B is fewer moves, but I genuinely don't care which — A costs me an evening and ends with the same code merged. What I'd like to avoid is a third week where four PRs sit at
vouch:unvouchedbecause nobody picked.@bigpod98 your call, since A only works if you're happy taking the commits. Say A and I'll have the diff up tonight.
One note for whoever ends up carrying it: the two
softprops/action-gh-releaseblocks inrelease.yml(first release / subsequent releases) each have their own file list and both need*.deb. Miss the second one and the package builds fine, uploads to nothing, and nobody notices until someone goes looking for it in a release.One thing i wont move away from is not just deb but also rpm we can seperate that in seperate prs but most work should be common so single pr might make sense
One thing i wont move away from is not just deb but also rpm we can seperate that in seperate prs but most work should be common so single pr might make sense
no yes, 100% we it should be both deb and rpm for sure. there's no reason to separate those. it's semantically the same thing, we are trying to add very commonly used linux targets. deb and rpm are the minimum.
deb and rpm are the minimum
Agreed, and I owe a correction: earlier in this thread I said the release runner has no
rpmbuildand that rpm therefore needed a runner change. That was wrong — I hadn't checked. The Ubuntu 24.04 runner image shipsrpm 4.18.2+dfsg-2.1build2, and on Ubuntu that package contains/usr/bin/rpmbuild. So rpm costs nothing extra at release time.#4071 now ships both. It turned out to need no new code at all beyond what deb already required — same
FpmTarget, samehomepage/maintainer, and the rpmdependslist (yours) was already sitting next to the deb one:- Linux job builds
AppImage,deb,rpmfrom the one electron-builder run *.rpmadded to the collect step and to bothaction-gh-releasefile lists- a Linux-only guard step that installs
rpmonly ifrpmbuildis missing, so the target doesn't silently break if the runner image changes - docs updated: neither
.debnor.rpmis an updater payload — in-app updates on Linux stay AppImage-only, so those installs upgrade throughdpkg/aptandrpm/dnf
@bigpod98 that's your "most work is common, so a single PR makes sense" point implemented — one run, three artifacts, no extra matrix entry, no extra wall-clock. The proposal above stands unchanged: if you'd rather your PR be the base, I'll port this over to your branch instead. Either way the code is written now.
- Linux job builds
deb and rpm are the minimum
Agreed, and I owe a correction: earlier in this thread I said the release runner has no
rpmbuildand that rpm therefore needed a runner change. That was wrong — I hadn't checked. The Ubuntu 24.04 runner image shipsrpm 4.18.2+dfsg-2.1build2, and on Ubuntu that package contains/usr/bin/rpmbuild. So rpm costs nothing extra at release time.#4071 now ships both. It turned out to need no new code at all beyond what deb already required — same
FpmTarget, samehomepage/maintainer, and the rpmdependslist (yours) was already sitting next to the deb one:- Linux job builds
AppImage,deb,rpmfrom the one electron-builder run *.rpmadded to the collect step and to bothaction-gh-releasefile lists- a Linux-only guard step that installs
rpmonly ifrpmbuildis missing, so the target doesn't silently break if the runner image changes - docs updated: neither
.debnor.rpmis an updater payload — in-app updates on Linux stay AppImage-only, so those installs upgrade throughdpkg/aptandrpm/dnf
@bigpod98 that's your "most work is common, so a single PR makes sense" point implemented — one run, three artifacts, no extra matrix entry, no extra wall-clock. The proposal above stands unchanged: if you'd rather your PR be the base, I'll port this over to your branch instead. Either way the code is written now.
I have no preference on which pr is used so we ca use yours or you can branch mine and pr it to my branch
- Linux job builds
Thanks — then let's take the path with the fewest moves and call it decided unless someone objects: #4071 is the one, because at this point it already contains everything the four PRs collectively do, minus the launcher you're splitting out anyway.
What's in it right now:
AppImage,deb,rpmfrom a single electron-builder run — no extra matrix entry, no extra release wall-clock, no artifact-name collisionhomepage+maintainer(the two fieldsFpmTargetrefuses to build without)- deb and rpm
dependslists — yours, credited in the description *.deb/*.rpmin the collect step and in bothaction-gh-releasefile listsdist:desktop:{deb,rpm}with:arm64/:x64variants, per @raulferrodrigues's convention point- docs (
internals/scripts.md,operations/release.md) and the download-page card — from #4900, credited - unit tests over the target split, the maintainer format, and the per-format
depends size:S, rebased on currentmain, mergeable
Follow-ups already agreed, in order: your headless
/usr/bin/t3launcher, then Linux arm64 (needs a maintainer's call on an arm64 runner). I'll write the arm64 one; the launcher is yours.@benthecarman @NaveDanan — this only works if you're both fine closing #4900 and #4887 in favour of it. Your work is in there: the docs and the download-page card came from #4900. If either of you would rather your own PR be the base, say so and I'll port everything to it instead; I'd just like us to land on one before the week is out.
And if anyone reading this from the maintainer side would rather see this as several smaller PRs than one, say the word and I'll cut it up — I'd just rather be told than guess.
or you can branch mine and pr it to my branch
@chukfinley please do that. create a pr there so I can leave comments there. let's keep this pr, the discussion is already happening here.
Thanks — then let's take the path with the fewest moves and call it decided unless someone objects: #4071 is the one, because at this point it already contains everything the four PRs collectively do, minus the launcher you're splitting out anyway.
What's in it right now:
AppImage,deb,rpmfrom a single electron-builder run — no extra matrix entry, no extra release wall-clock, no artifact-name collisionhomepage+maintainer(the two fieldsFpmTargetrefuses to build without)- deb and rpm
dependslists — yours, credited in the description *.deb/*.rpmin the collect step and in bothaction-gh-releasefile listsdist:desktop:{deb,rpm}with:arm64/:x64variants, per @raulferrodrigues's convention point- docs (
internals/scripts.md,operations/release.md) and the download-page card — from feat(desktop): Add a Linux .deb to releases #4900, credited - unit tests over the target split, the maintainer format, and the per-format
depends size:S, rebased on currentmain, mergeable
Follow-ups already agreed, in order: your headless
/usr/bin/t3launcher, then Linux arm64 (needs a maintainer's call on an arm64 runner). I'll write the arm64 one; the launcher is yours.@benthecarman @NaveDanan — this only works if you're both fine closing #4900 and #4887 in favour of it. Your work is in there: the docs and the download-page card came from #4900. If either of you would rather your own PR be the base, say so and I'll port everything to it instead; I'd just like us to land on one before the week is out.
And if anyone reading this from the maintainer side would rather see this as several smaller PRs than one, say the word and I'll cut it up — I'd just rather be told than guess.
let's keep this pr because the discussion is already happening here.
Done: bigpod98/t3code#1 against @bigpod98's branch, so #5139 stays the PR and the discussion stays here.
It adds the part your branch was missing — nothing there builds or ships the packages yet:
- Linux release entry builds
AppImage,deb,rpmfrom one electron-builder run (a second matrix entry would collide on thedesktop-${platform}-${arch}upload artifact name — the #1655 collision;artifactName's${ext}already keeps the files apart) *.deb/*.rpmin the collect step and in bothaction-gh-releaseblocks — they each carry their own file list, and missing the second one means the packages build and never ship- a Linux-only step that guarantees
rpmbuild(no-op on the current image, insurance against image drift) resolveLinuxTargetsso thedeb/rpmsections and your headless launcher key off the resolved target list instead of an exacttarget === "deb"match — otherwise a combined build configures neither:arm64/:x64script variants per @raulferrodrigues's convention point, docs for both formats, download-page cards, and tests
Your launcher is untouched,
fpmwiring included — splitting it out stays your call, and it rebases cleanly either way.I'll close #4071 once this is merged into your branch; leaving it open until then only so nothing is lost if you'd rather cherry-pick pieces. #4900 and #4887 are @benthecarman's and @NaveDanan's calls — their work (docs, download card) is in here with credit.
- Linux release entry builds
closed my PR in favor of creating an aggegrate one but @chukfinley if you want people to take your OSS seriously, please don't copy-paste exact AI outputs into github
Fair, I'll keep it short from here.
Wiring's up at bigpod98/t3code#1 against bigpod's branch. Thanks for closing yours, your docs and download card are in it.
closed my PR in favor of creating an aggegrate one but @chukfinley if you want people to take your OSS seriously, please don't copy-paste exact AI outputs into github
it's probably an agent, like an openclaw agent. honestly could be worse, at least this one isn't combative...
- scripts/build-desktop-artifact.ts line 1976OutdatedResolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -1887,3 +1972,5 @@18871972 yield* fs.writeFileString(macEntitlementsPath, renderMacPasskeyEntitlements(macPasskeySigning));18881973 }188919741975+ const linuxPackageTargets = resolveLinuxTargets(options.target);1976+ const linuxHeadlessLauncherPath =
🟠 High
scripts/build-desktop-artifact.ts:1976The Linux
t3headless launcher written byrenderLinuxHeadlessLaunchertargetsresources/app.asar.unpacked/apps/server/dist/bin.mjs, but Linux builds never unpack the server directory —asarUnpackis only set for Windows. So the launcher points at a path that does not exist inside the installed package, and everydeb/rpmt3invocation fails immediately instead of starting the server. Either point the launcher at the asar-internal path (resources/app.asar/apps/server/dist/bin.mjs) or configureasarUnpackto includeapps/server/dist/**for Linux targets.No longer relevant as of b95d7cbd6feeace8533489b894aa57e286fd7d78
ok yeah this is the t3 launcher thing we think we are going to split into another pr. Ill create a pr on the bigpod fork about this.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.
Approvability#
Verdict: Needs human review
This PR introduces new Linux distribution formats (deb/rpm packages) as download options. While the changes are well-tested packaging configuration that doesn't alter application runtime behavior, adding new user-facing distribution channels represents a new capability that warrants human review.
You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).- scripts/build-desktop-artifact.ts line 164Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -132,3 +132,15 @@132132 },133133 };134134135+const DEB_DEPENDENCIES = [136+ "libgtk-3-0",137+ "libnotify4",138+ "libnss3",139+ "libxss1",140+ "libxtst6",141+ "xdg-utils",142+ "libatspi2.0-0",143+ "libuuid1",144+ "libsecret-1-0",145+ "libasound2t64 | libasound2",146+] as const;
Deb packages omit required GBM dependency#
Medium Severity
DEB_DEPENDENCIESreplaces electron-builder’s default depends list but never declareslibgbm1, whileRPM_DEPENDENCIESincludes the equivalentmesa-libgbm. Modern Electron needslibgbm.so.1to start, so.debinstalls can succeed and then fail at launch on systems that do not already have GBM installed.Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c882349547d0ad786cf1aff79e05f20c05e24eee. Configure [here](https://www.cursor.com/dashboard/bugbot).Additional Locations (1)
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the [Cursor dashboard](https://www.cursor.com/dashboard/bugbot). Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 703f72cccafc8c899cdb5afefd3f77174ba20086. Configure [here](https://www.cursor.com/dashboard/bugbot).
@@ -132,3 +132,15 @@132132 },133133 };134134135+const DEB_DEPENDENCIES = [136+ "libgtk-3-0",137+ "libnotify4",138+ "libnss3",139+ "libxss1",140+ "libxtst6",141+ "xdg-utils",142+ "libatspi2.0-0",143+ "libuuid1",144+ "libsecret-1-0",145+ "libasound2t64 | libasound2",146+ "libgbm1",Stale DEB dependency test#
Medium Severity
Adding
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 703f72cccafc8c899cdb5afefd3f77174ba20086. Configure [here](https://www.cursor.com/dashboard/bugbot).libgbm1toDEB_DEPENDENCIESleaves the packaging unit test asserting the previousdeb.dependslist without that entry, soincludes distribution metadata in Linux package buildsfails undervp run test.@raulferrodrigues i am thinking of how to format the t3 entrypoint my 2 options right now is 1 exactly like done in this repo or a seperate server package that depends on this one that adds t3 entrypoint
got a response from theo:
I’m not slowing down our ci even more for a bunch of special distros.
Happy to support others setting up an automatic mirror, but this is a slippery slope I don’t want to be on
I’m not slowing down our ci even more for a bunch of special distros.
well damn... well at least we have an answer.
let's keep the PR open, we might come back to this in the future, he might change his mind.
also keep in mind he fucking hates github right at this moment, the entire github actions thing was down for 8 hours straight, so it could be just a temporary thing, it would be worth it to ask again in like couple months.
he's right about the automatic mirror tho, let's set it up and use it I guess. not ideal, but it will have to do for now.
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:M
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
While this PR is not merged, I've put together a repo to automate
.deband.rpmbuilds based on the patch from this PR. If anyone is interested: https://github.com/bgmulinari/t3code-linux-packagesNot sure if this is what @t3dotgg meant by "automatic mirror", so any feedback/contribution is welcome.
i have also been working on one automated build system for RPM and Deb and may include others are well. and i have a hosted Repository as well it is still not linked to it but i personally would recommend mine as i have gone the other way and forgo the building methods for packages of this repo and used most basic output of it in Standard RPM and DEB packaging system that allows for several benefits including partial autonomy when it comes to things like them changing the building TS script which as been a problem few times trough the life time of this and previous version of this PR and is likely to be a problem in future as well
I switched to https://paseo.sh/ which has actual linux releases
Note
🤖 GPT-5.6 Sol responding on behalf of Theo
Closing this PR after an automated pass over open pull requests. Theo already rejected adding more Linux package formats to release CI. External package mirrors exist.
t3dotgg(GitHub profile, opens in a new tab) closed this
if anyone wants the packages my packaged versions are avaialble at https://git.tuxbase.com/t3code-stable/-/packages and https://git.tuxbase.com/t3code-daily/-/packages i have setup repos for both deb and rpm
Sign in to join this conversation.

Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
9178547b-d5c6-4529-97ac-13eb8bbb0712You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share