From fa7430af3b91c73f6ca722389fd0c97149876e30 Mon Sep 17 00:00:00 2001 From: Gaktan Date: Fri, 6 Mar 2026 20:06:56 +0100 Subject: [PATCH] feat: make debian package Signed-off-by: Gaktan --- forge.config.ts | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/forge.config.ts b/forge.config.ts index 71c17fe..6583e8c 100644 --- a/forge.config.ts +++ b/forge.config.ts @@ -15,8 +15,10 @@ import { FuseV1Options, FuseVersion } from "@electron/fuses"; const STRINGS = { author: "Revolt Platforms LTD", name: "Stoat", + packageName: "stoat-for-desktop", execName: "stoat-desktop", description: "Open source user-first chat platform.", + homepage: "https://stoat.chat/" }; const ASSET_DIR = "assets/desktop"; @@ -26,6 +28,7 @@ const ASSET_DIR = "assets/desktop"; */ const makers: ForgeConfig["makers"] = [ new MakerSquirrel({ + platforms: ["win32"], name: STRINGS.name, authors: STRINGS.author, // todo: hoist this @@ -38,6 +41,21 @@ const makers: ForgeConfig["makers"] = [ copyright: "Copyright (C) 2025 Revolt Platforms LTD", }), new MakerZIP({}), + new MakerDeb({ + platforms: ["linux"], + name: STRINGS.packageName, + productName: STRINGS.name, + genericName: "Chat platform", + description: STRINGS.description, + // todo: productDescription (long description) + section: "net", + priority: "optional", + maintainer: STRINGS.author, + homepage: STRINGS.homepage, + bin: `${STRINGS.execName}`, + icon: `${ASSET_DIR}/icon.ico`, + categories: ["Network"], + }) ]; // skip these makers in CI/CD @@ -117,15 +135,6 @@ if (!process.env.PLATFORM) { "files" > */ }), - // testing purposes - new MakerDeb({ - options: { - productName: STRINGS.name, - productDescription: STRINGS.description, - categories: ["Network"], - icon: `${ASSET_DIR}/icon.png`, - }, - }), ); }