update-release script

This commit is contained in:
kamkow1
2025-06-22 19:47:35 +02:00
parent cd29f363fa
commit df6d009ce7
2 changed files with 11 additions and 1 deletions

View File

@ -21,7 +21,8 @@ watcher: watcher.c
clean:
go clean
rm watcher
rm -f watcher
rm -f ltscleanerd
watch: all
./watcher . sh -c "make BUILD_MODE=$(BUILD_MODE) && ./lts"

9
scripts/update-release Normal file
View File

@ -0,0 +1,9 @@
#!/bin/sh
systemctl stop lts.service
make clean
make -B BUILD_MODE=RELEASE
cp ./lts /usr/local/bin/lts
cp ./ltscleanerd /usr/local/bin/ltscleanerd
systemctl start lts.service
systemctl status lts.service