Compare commits
3 changed files with 18 additions and 31 deletions
|
|
@ -39,7 +39,6 @@
|
||||||
"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"
|
||||||
|
|
@ -56,15 +55,8 @@
|
||||||
],
|
],
|
||||||
"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"]
|
||||||
|
|
|
||||||
39
flake.nix
39
flake.nix
|
|
@ -12,29 +12,24 @@
|
||||||
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";
|
|
||||||
desktopItem = pkgs.makeDesktopItem {
|
|
||||||
name = "tensamin";
|
|
||||||
desktopName = "Tensamin";
|
|
||||||
exec = "tensamin %U";
|
|
||||||
icon = "tensamin";
|
|
||||||
categories = ["Network"];
|
|
||||||
};
|
|
||||||
wrapAppImage = src:
|
|
||||||
pkgs.appimageTools.wrapType2 {
|
|
||||||
pname = "tensamin";
|
|
||||||
inherit version src;
|
|
||||||
extraInstallCommands = ''
|
|
||||||
install -Dm444 ${desktopItem}/share/applications/tensamin.desktop $out/share/applications/tensamin.desktop
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
default = wrapAppImage (pkgs.fetchurl {
|
|
||||||
url = "${forgejoBaseUrl}/${artifact}";
|
|
||||||
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
|
||||||
});
|
|
||||||
|
|
||||||
localPathForDev = wrapAppImage appImagePath;
|
appImagePath = /. + builtins.getEnv "TENSAMIN_APPIMAGE";
|
||||||
|
in {
|
||||||
|
default = pkgs.appimageTools.wrapType2 {
|
||||||
|
pname = "tensamin";
|
||||||
|
inherit version;
|
||||||
|
src = pkgs.fetchurl {
|
||||||
|
url = "${forgejoBaseUrl}/${artifact}";
|
||||||
|
hash = "sha256-aiApiDSx5CycLbWnYIborQWbBq12MEuArZLLvw6m64s=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
localPathForDev = pkgs.appimageTools.wrapType2 {
|
||||||
|
pname = "tensamin";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = appImagePath;
|
||||||
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tensamin",
|
"name": "tensamin",
|
||||||
"version": "0.0.5",
|
"version": "0.0.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"packages/*",
|
"packages/*",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue