From 9a529b5569d6c5aa5738827cbe180369cdb79e59 Mon Sep 17 00:00:00 2001 From: Unbewohnte Date: Fri, 3 Jan 2025 13:44:27 +0300 Subject: [PATCH] BUILD: Save database file on builds --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8ef9841..4780dbc 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: clean +all: savedb clean mkdir -p bin && \ cd src && CGO_ENABLED=0 go build && mv dela ../bin && \ cd .. && \ @@ -6,9 +6,14 @@ all: clean cp -r scripts bin && \ cp -r static bin + -mv dela.db bin/ + portable: clean all cd bin/ && cp ../COPYING . && cp ../README.md . && zip -r dela.zip * && mv dela.zip .. +savedb: + -cp bin/dela.db . + cross: clean mkdir -p bin mkdir -p bin/dela_linux_x64