929
readonly private: true;
930
readonly packageManager: string;
931
readonly description: string;
932
+ readonly homepage: string;
933
readonly author: string;
934
readonly main: string;
935
readonly build: Record<string, unknown>;
2734
2735
if (platform === "linux") {
2736
buildConfig.linux = {
2736
- target: [target],
2737
+ // The .deb is built from the same unpacked app after the AppImage.
2738
+ // electron-builder lists both in latest-linux.yml and writes
2739
+ // resources/package-type into the .deb only, so electron-updater updates
2740
+ // each install in its own format.
2741
+ target: target === "AppImage" ? [target, "deb"] : [target],
2742
executableName: "t3code",
2743
icon: "icons",
2744
category: "Development",
2745
+ synopsis: "Desktop GUI for coding agents",
2746
+ // Required by the .deb control file.
2747
+ maintainer: "T3 Tools <hello@t3.codes>",
2748
// electron-builder turns these into MimeType=x-scheme-handler/<scheme>;
2749
// in the .desktop entry (Exec already gets %U), so browsers can hand
2750
// t3code:// OAuth callbacks to the app.
2760
},
2761
},
2762
};
2763
+ buildConfig.deb = {
2764
+ // Electron's runtime libraries. Debian 13 and Ubuntu 24.04 renamed some
2765
+ // for 64-bit time; the old name is the fallback for older releases.
2766
+ depends: [
2767
+ "libasound2t64 | libasound2",
2768
+ "libatspi2.0-0t64 | libatspi2.0-0",
2769
+ "libgbm1",
2770
+ "libgtk-3-0t64 | libgtk-3-0",
2771
+ "libnotify4",
2772
+ "libnss3",
2773
+ "libsecret-1-0",
2774
+ "libuuid1",
2775
+ "libxss1",
2776
+ "libxtst6",
2777
+ "xdg-utils",
2778
+ ],
2779
+ };
2780
}
2781
2782
if (platform === "win") {
3667
private: true,
3668
packageManager: rootPackageJson.packageManager,
3669
description: "T3 Code desktop build",
3670
+ // Required by the .deb control file.
3671
+ homepage: "https://t3.codes",
3672
author: "T3 Tools",
3673
main: "apps/desktop/dist-electron/main.cjs",
3674
build: yield* createBuildConfig(
3765
delete buildEnv[key];
3766
}
3767
}
3768
+ if (options.platform === "linux") {
3769
+ // fpm compresses the .deb with the system xz through tar. Threaded mode
3770
+ // takes seconds on a many-core runner instead of about two minutes.
3771
+ buildEnv.XZ_DEFAULTS = "-T0";
3772
+ }
3773
if (!options.signed) {
3774
buildEnv.CSC_IDENTITY_AUTO_DISCOVERY = "false";
3775
delete buildEnv.CSC_LINK;