Skip to content

Commit

Permalink
Added Nody Greeter scalable icon
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Jul 1, 2022
1 parent ba98a1f commit ef00929
Show file tree
Hide file tree
Showing 3 changed files with 596 additions and 2 deletions.
10 changes: 10 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ let lightdm_path = path.join(INSTALL_ROOT, "etc/lightdm");
let webg_path = path.join(INSTALL_ROOT, PREFIX, "share/web-greeter");
let xgreeters_path = path.join(INSTALL_ROOT, PREFIX, "share/xgreeters");
let applications_path = path.join(INSTALL_ROOT, PREFIX, "share/applications");
let icons_path = path.join(INSTALL_ROOT, PREFIX, "share/icons/hicolor");
let xdg_ldm_path = path.join(INSTALL_ROOT, "etc/xdg/lightdm/lightdm.conf.d/");
let bash_c_path = path.join(
INSTALL_ROOT,
Expand Down Expand Up @@ -244,6 +245,8 @@ function create_install_root() {
fs.mkdirsSync(xdg_ldm_path, { recursive: true });
fs.mkdirsSync(xgreeters_path, { recursive: true });
fs.mkdirsSync(applications_path, { recursive: true });
fs.mkdirsSync(icons_path, { recursive: true });
fs.mkdirsSync(path.join(icons_path, "scalable/apps"), { recursive: true });
if (check_program("bash") && INSTALL_BASH_COMPLETION)
fs.mkdirsSync(bash_c_path, { recursive: true });
if (check_program("zsh") && INSTALL_ZSH_COMPLETION)
Expand All @@ -263,6 +266,13 @@ let copies_prepare = [
from: "./dist/nody-greeter.desktop",
to: path.join(applications_path, "nody-greeter.desktop"),
},
{
from: "./dist/com.github.jezerm.nody-greeter.svg",
to: path.join(
icons_path,
"scalable/apps/com.github.jezerm.nody-greeter.svg"
),
},
{
from: "./dist/90-greeter-wrapper.conf",
to: path.join(xdg_ldm_path, "90-greeter-wrapper.conf"),
Expand Down
Loading

0 comments on commit ef00929

Please sign in to comment.