build.sh supports building package

This commit is contained in:
MaysWind
2021-06-09 01:07:47 +08:00
parent db11278bd5
commit 7f689b1a24
2 changed files with 43 additions and 12 deletions
+2 -11
View File
@@ -57,18 +57,9 @@ ezBookkeeping will listen at port 8080 as default. Then you can visit http://<YO
Make sure you have [Golang](https://golang.org/), [GCC](http://gcc.gnu.org/), [Node.js](https://nodejs.org/) and [NPM](https://www.npmjs.com/) installed. Then download the source code, and follow these steps:
# Build backend binary file
$ ./build.sh backend
$ ./build.sh package -f ezbookkeeping.tar.gz
# Build frontend static files
$ ./build.sh frontend
# Copy files to target path
$ cp ezbookkeeping <target>/ezbookkeeping
$ cp -R dist <target>/public
$ cp -R conf <target>/conf
All the files will be placed in `<target>` directory.
All the files will be packaged in `ezbookkeeping.tar.gz`.
You can also build docker image, make sure you have [docker](https://www.docker.com/) installed, then follow these steps: