Skip to content

Commit ee29621

Browse files
committed
Simplify appimage generation
1 parent 9323b9c commit ee29621

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

appimage-bundle.nix

+3-12
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,17 @@ let
1818
src = env;
1919
inherit exec;
2020
buildInputs = [ drv ];
21-
usr_fonts = buildEnv {
22-
name = "fonts";
23-
paths = [noto-fonts];
24-
};
2521
buildCommand = ''
26-
source $stdenv/setup
27-
mkdir $out
22+
mkdir -p $out/share/icons/hicolor/256x256/apps
23+
mkdir -p $out/share/applications
24+
2825
shopt -s extglob
2926
ln -s ${env}/!(share) $out/
30-
mkdir -p $out/share/fonts
3127
ln -s ${env}/share/* $out/share/
3228
33-
cp ${usr_fonts}/share/fonts/* $out/share/fonts -R
34-
35-
mkdir -p $out/share/icons
36-
mkdir -p $out/share/icons/hicolor/256x256/apps
3729
touch $out/share/icons/hicolor/256x256/apps/${drv.name}.png
3830
touch $out/share/icons/${drv.name}.png
3931
40-
mkdir -p $out/share/applications
4132
cat <<EOF > $out/share/applications/${drv.name}.desktop
4233
[Desktop Entry]
4334
Type=Application

0 commit comments

Comments
 (0)