Browse Source

BUILD: Save database file on builds

master
parent
commit
9a529b5569
  1. 7
      Makefile

7
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

Loading…
Cancel
Save