Created a simple installer

This commit is contained in:
koffeejava
2026-03-12 21:47:57 -06:00
parent a84b7033dc
commit 89050146c5

15
src/installer.cr Normal file
View File

@@ -0,0 +1,15 @@
orange = "\e[38;5;214m"
red = "\e[38;5;52m"
bold = "\033[1m"
reset = "\e[0m"
if Process.uid != 0
puts "#{red}#{bold}You must be in root to install wfetch!#{reset}"
exit(0)
end
puts "#{orange}#{bold}wfetch installer 0.1.0#{reset}"
File.copy("data/wfetch", "/usr/bin/wfetch")
puts "Finished"