Changed install directory for better package-manager compatibility.
This commit is contained in:
parent
d05d45c750
commit
5d9f0c5880
2 changed files with 4 additions and 5 deletions
6
Makefile
6
Makefile
|
@ -9,12 +9,12 @@ build: uwufetch.c
|
||||||
|
|
||||||
install:
|
install:
|
||||||
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|
sudo cp $(NAME) $(INSTALL_DIR)$(NAME)
|
||||||
ls ~/.config/uwufetch 1> /dev/null || mkdir ~/.config/uwufetch/
|
ls /usr/lib/uwufetch/ > /dev/null || sudo mkdir /usr/lib/uwufetch/
|
||||||
cp res/* ~/.config/uwufetch/
|
sudo cp res/* /usr/lib/uwufetch/
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
sudo rm $(INSTALL_DIR)$(NAME)
|
sudo rm $(INSTALL_DIR)$(NAME)
|
||||||
rm -rf ~/.config/uwufetch
|
sudo rm -rf /usr/lib/uwufetch/
|
||||||
|
|
||||||
debug: build install
|
debug: build install
|
||||||
clear
|
clear
|
||||||
|
|
|
@ -190,9 +190,8 @@ void print_ascii() { // prints logo (as ascii art) of the given system. distribu
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
void print_image() { // prints logo (as an image) of the given system. distributions listed alphabetically.
|
||||||
//printf("e[1;1H\e[2J");
|
|
||||||
char command[256];
|
char command[256];
|
||||||
sprintf(command, "viu -t -w 18 -h 8 $HOME/.config/uwufetch/%s.png", version_name);
|
sprintf(command, "viu -t -w 18 -h 8 /usr/lib/uwufetch/%s.png", version_name);
|
||||||
system(command);
|
system(command);
|
||||||
|
|
||||||
if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu");
|
if (strcmp(version_name, "arch") == 0) sprintf(version_name, "%s", "Nyarch Linuwu");
|
||||||
|
|
Loading…
Reference in a new issue