From f4f148eb670622a049ae6561d7795011e383fc43 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Tue, 6 Oct 2026 14:51:55 -0700 Subject: [PATCH] fix(desktop): include Linux package license and app metadata (#16597) --- .../linux/com.t3tools.t3code.metainfo.xml | 32 +++++++++++++++++++ scripts/build-desktop-artifact.ts | 13 +++++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml diff --git a/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml b/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml new file mode 100644 index 0000000000000000000000000000000000000000..0ae54a9849fcb6f99350d59fc590d075f92288a6 --- /dev/null +++ b/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml @@ -0,0 +1,32 @@ + + + com.t3tools.t3code + CC0-1.0 + MIT + T3 Code + Desktop GUI for coding agents + + T3 Tools Inc. + + +

+ T3 Code is an open-source desktop app for coding agents. Work with your + existing agent subscriptions, review code changes, and run commands in + your projects. +

+

+ Connect from desktop, web, or mobile to continue working remotely. +

+
+ t3code.desktop + t3code + + t3code + + + Development + + https://t3.codes + https://github.com/pingdotgg/t3code/issues + https://github.com/pingdotgg/t3code +
diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.ts index 6bf280469c695933de2a38206a608848ba4fec66..301b42613d25849b7c695dcf4c2fcf6558cb7513 100644 --- a/scripts/build-desktop-artifact.ts +++ b/scripts/build-desktop-artifact.ts @@ -929,6 +929,7 @@ interface StagePackageJson { readonly private: true; readonly packageManager: string; readonly description: string; + readonly license: string; readonly homepage: string; readonly author: string; readonly main: string; @@ -2766,6 +2767,8 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* ( // dynamically loads the system libfuse2 library. Pin the static runtime so // the AppImage also launches on distributions that only provide FUSE 3. buildConfig.toolsets = { appimage: "1.0.3" }; + const path = yield* Path.Path; + const repoRoot = yield* RepoRoot; buildConfig.linux = { // The .deb is built from the same unpacked app after the AppImage. // electron-builder lists both in latest-linux.yml and writes @@ -2794,6 +2797,12 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* ( }, }; buildConfig.deb = { + // FPM runs outside the staged app directory, so source paths must be absolute. + // AppStream consumers associate this metadata with our t3code.desktop entry. + fpm: [ + `${path.join(repoRoot, "apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml")}=/usr/share/metainfo/com.t3tools.t3code.metainfo.xml`, + `${path.join(repoRoot, "LICENSE")}=/usr/share/doc/t3code/copyright`, + ], // Electron's runtime libraries. Debian 13 and Ubuntu 24.04 renamed some // for 64-bit time; the old name is the fallback for older releases. depends: [ @@ -3702,7 +3711,9 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* ( t3codeCommitHash: commitHash, private: true, packageManager: rootPackageJson.packageManager, - description: "T3 Code desktop build", + description: + "T3 Code is an open-source desktop app for coding agents. Work with your existing agent subscriptions, review code changes, and run commands in your projects. Connect from desktop, web, or mobile to continue working remotely.", + license: "MIT", // Required by the .deb control file. homepage: "https://t3.codes", author: "T3 Tools", -- 2.54.0