Skip to content

Commit f4f148e

Browse files
fix(desktop): include Linux package license and app metadata (#16597)
1 parent c9b21b2 commit f4f148e

2 files changed

Lines changed: 44 additions & 1 deletion

File tree

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<component type="desktop-application">
3+
<id>com.t3tools.t3code</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<project_license>MIT</project_license>
6+
<name>T3 Code</name>
7+
<summary>Desktop GUI for coding agents</summary>
8+
<developer id="com.t3tools">
9+
<name>T3 Tools Inc.</name>
10+
</developer>
11+
<description>
12+
<p>
13+
T3 Code is an open-source desktop app for coding agents. Work with your
14+
existing agent subscriptions, review code changes, and run commands in
15+
your projects.
16+
</p>
17+
<p>
18+
Connect from desktop, web, or mobile to continue working remotely.
19+
</p>
20+
</description>
21+
<launchable type="desktop-id">t3code.desktop</launchable>
22+
<icon type="stock">t3code</icon>
23+
<provides>
24+
<binary>t3code</binary>
25+
</provides>
26+
<categories>
27+
<category>Development</category>
28+
</categories>
29+
<url type="homepage">https://t3.codes</url>
30+
<url type="bugtracker">https://github.com/pingdotgg/t3code/issues</url>
31+
<url type="vcs-browser">https://github.com/pingdotgg/t3code</url>
32+
</component>

‎scripts/build-desktop-artifact.ts‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -929,6 +929,7 @@ interface StagePackageJson {
929929
readonly private: true;
930930
readonly packageManager: string;
931931
readonly description: string;
932+
readonly license: string;
932933
readonly homepage: string;
933934
readonly author: string;
934935
readonly main: string;
@@ -2766,6 +2767,8 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
27662767
// dynamically loads the system libfuse2 library. Pin the static runtime so
27672768
// the AppImage also launches on distributions that only provide FUSE 3.
27682769
buildConfig.toolsets = { appimage: "1.0.3" };
2770+
const path = yield* Path.Path;
2771+
const repoRoot = yield* RepoRoot;
27692772
buildConfig.linux = {
27702773
// The .deb is built from the same unpacked app after the AppImage.
27712774
// electron-builder lists both in latest-linux.yml and writes
@@ -2794,6 +2797,12 @@ export const createBuildConfig = Effect.fn("createBuildConfig")(function* (
27942797
},
27952798
};
27962799
buildConfig.deb = {
2800+
// FPM runs outside the staged app directory, so source paths must be absolute.
2801+
// AppStream consumers associate this metadata with our t3code.desktop entry.
2802+
fpm: [
2803+
`${path.join(repoRoot, "apps/desktop/resources/linux/com.t3tools.t3code.metainfo.xml")}=/usr/share/metainfo/com.t3tools.t3code.metainfo.xml`,
2804+
`${path.join(repoRoot, "LICENSE")}=/usr/share/doc/t3code/copyright`,
2805+
],
27972806
// Electron's runtime libraries. Debian 13 and Ubuntu 24.04 renamed some
27982807
// for 64-bit time; the old name is the fallback for older releases.
27992808
depends: [
@@ -3702,7 +3711,9 @@ const buildDesktopArtifact = Effect.fn("buildDesktopArtifact")(function* (
37023711
t3codeCommitHash: commitHash,
37033712
private: true,
37043713
packageManager: rootPackageJson.packageManager,
3705-
description: "T3 Code desktop build",
3714+
description:
3715+
"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.",
3716+
license: "MIT",
37063717
// Required by the .deb control file.
37073718
homepage: "https://t3.codes",
37083719
author: "T3 Tools",

0 commit comments

Comments
 (0)