logos are now in the logos/ directory (to not bloat the /usr/share)

This commit is contained in:
nekohepott 2026-06-17 04:16:25 +03:00
parent de47ae56ff
commit 2eb353e91f
No known key found for this signature in database
7 changed files with 10 additions and 10 deletions

View File

@ -36,10 +36,10 @@ package() {
install -Dm755 "gogofetch" "$pkgdir/usr/bin/gogofetch"
install -d "$pkgdir/usr/share/gogofetch/assets"
install -d "$pkgdir/usr/share/gogofetch/logos"
cp -v assets/*.png "$pkgdir/usr/share/gogofetch/assets/"
cp -v assets/*.png "$pkgdir/usr/share/gogofetch/logos/"
chmod 755 "$pkgdir/usr/share/gogofetch/assets"
chmod 644 "$pkgdir/usr/share/gogofetch/assets/"*.png
chmod 755 "$pkgdir/usr/share/gogofetch/logos"
chmod 644 "$pkgdir/usr/share/gogofetch/logos/"*.png
}

View File

@ -24,8 +24,8 @@ buildGoApplication {
buildInputs = [ pkgs.chafa ];
postInstall = ''
mkdir -p $out/share/gogofetch/assets
cp -r assets/*.png $out/share/gogofetch/assets/
mkdir -p $out/share/gogofetch/logos
cp -r assets/*.png $out/share/gogofetch/logos/
wrapProgram $out/bin/goGoFetch \
--prefix PATH : ${pkgs.lib.makeBinPath [ pkgs.chafa ]}

View File

@ -21,10 +21,10 @@ const (
var dist string
var logoMap = map[string]string{
"Arch Linux": "assets/arch.png",
"Debian": "assets/debian.png",
"NixOS": "assets/nixos.png",
"default": "assets/linux.png",
"Arch Linux": "logos/arch.png",
"Debian": "logos/debian.png",
"NixOS": "logos/nixos.png",
"default": "logos/linux.png",
}
func getDist() string {