Fixed chroot bugs and reduced executable size

Stormfetch will now only list CPU and memory information if available
Added 'ldflag "-w"' to go build which reduces file size
Added 'run' goal to Makefile
This commit is contained in:
2024-05-15 13:25:11 +03:00
parent 4a2833afff
commit 2984a7da5f
4 changed files with 23 additions and 8 deletions
+4 -1
View File
@@ -13,7 +13,7 @@ endif
build:
mkdir -p build
$(GO) build -o build/stormfetch stormfetch
$(GO) build -ldflags "-w" -o build/stormfetch stormfetch
install: build/stormfetch config/
mkdir -p $(DESTDIR)$(BINDIR)
@@ -29,5 +29,8 @@ compress: build/stormfetch config/
tar --owner=root --group=root -czf stormfetch.tar.gz stormfetch
rm -r stormfetch
run: build/stormfetch
build/stormfetch
clean:
rm -r build/