TypeScript
fix(desktop): include Linux package license and app metadata (#16597)
Julius Marmingef4f148eb6706
diff --git a/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml b/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xmlnew file mode 100644index 00000000000..0ae54a9849f--- /dev/null+++ b/apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml@@ -0,0 +1,32 @@+<?xml version="1.0" encoding="UTF-8"?>+<component type="desktop-application">+ <id>com.t3tools.t3code</id>+ <metadata_license>CC0-1.0</metadata_license>+ <project_license>MIT</project_license>+ <name>T3 Code</name>+ <summary>Desktop GUI for coding agents</summary>+ <developer id="com.t3tools">+ <name>T3 Tools Inc.</name>+ </developer>+ <description>+ <p>+ 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.+ </p>+ <p>+ Connect from desktop, web, or mobile to continue working remotely.+ </p>+ </description>+ <launchable type="desktop-id">t3code.desktop</launchable>+ <icon type="stock">t3code</icon>+ <provides>+ <binary>t3code</binary>+ </provides>+ <categories>+ <category>Development</category>+ </categories>+ <url type="homepage">https://t3.codes</url>+ <url type="bugtracker">https://github.com/pingdotgg/t3code/issues</url>+ <url type="vcs-browser">https://github.com/pingdotgg/t3code</url>+</component>diff --git a/scripts/build-desktop-artifact.ts b/scripts/build-desktop-artifact.tsindex 6bf280469c6..301b42613d2 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",