(fix): nixos missing .desktop files, binary name from desktop app
All checks were successful
/ build-web (push) Successful in 3m17s
/ build-desktop (linux) (push) Successful in 8m41s
/ build-mobile (push) Successful in 25m43s
/ release (push) Successful in 57s

This commit is contained in:
Alois 2026-05-27 18:58:05 +02:00
commit 919814ae0b
3 changed files with 31 additions and 18 deletions

View file

@ -39,6 +39,7 @@
"build": { "build": {
"appId": "net.tensamin.client", "appId": "net.tensamin.client",
"productName": "Tensamin", "productName": "Tensamin",
"executableName": "tensamin",
"artifactName": "Tensamin-${version}-${os}-${arch}.${ext}", "artifactName": "Tensamin-${version}-${os}-${arch}.${ext}",
"directories": { "directories": {
"output": "release" "output": "release"
@ -55,8 +56,15 @@
], ],
"linux": { "linux": {
"target": ["AppImage", "deb", "rpm"], "target": ["AppImage", "deb", "rpm"],
"executableName": "tensamin",
"category": "Network", "category": "Network",
"maintainer": "methanium" "maintainer": "Methanium",
"desktop": {
"entry": {
"Name": "Tensamin",
"StartupWMClass": "Tensamin"
}
}
}, },
"win": { "win": {
"target": ["nsis", "portable"] "target": ["nsis", "portable"]

View file

@ -12,24 +12,29 @@
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = import nixpkgs {inherit system;}; pkgs = import nixpkgs {inherit system;};
artifact = if system == "aarch64-linux" then "Tensamin-${version}-linux-arm64.AppImage" else "Tensamin-${version}-linux-x86_64.AppImage"; artifact = if system == "aarch64-linux" then "Tensamin-${version}-linux-arm64.AppImage" else "Tensamin-${version}-linux-x86_64.AppImage";
appImagePath = /. + builtins.getEnv "TENSAMIN_APPIMAGE"; appImagePath = /. + builtins.getEnv "TENSAMIN_APPIMAGE";
in { desktopItem = pkgs.makeDesktopItem {
default = pkgs.appimageTools.wrapType2 { name = "tensamin";
desktopName = "Tensamin";
exec = "tensamin %U";
icon = "tensamin";
categories = ["Network"];
};
wrapAppImage = src:
pkgs.appimageTools.wrapType2 {
pname = "tensamin"; pname = "tensamin";
inherit version; inherit version src;
src = pkgs.fetchurl { extraInstallCommands = ''
install -Dm444 ${desktopItem}/share/applications/tensamin.desktop $out/share/applications/tensamin.desktop
'';
};
in {
default = wrapAppImage (pkgs.fetchurl {
url = "${forgejoBaseUrl}/${artifact}"; url = "${forgejoBaseUrl}/${artifact}";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
}; });
};
localPathForDev = pkgs.appimageTools.wrapType2 { localPathForDev = wrapAppImage appImagePath;
pname = "tensamin";
inherit version;
src = appImagePath;
};
}); });
}; };
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "tensamin", "name": "tensamin",
"version": "0.0.4", "version": "0.0.5",
"private": true, "private": true,
"workspaces": [ "workspaces": [
"packages/*", "packages/*",