mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 18:24:26 +08:00
modify build.sh parameter
This commit is contained in:
@@ -55,7 +55,7 @@ ezBookkeeping will listen at port 8080 as default. Then you can visit http://{YO
|
|||||||
### Build from source
|
### Build from source
|
||||||
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:
|
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.sh package -f ezbookkeeping.tar.gz
|
$ ./build.sh package -o ezbookkeeping.tar.gz
|
||||||
|
|
||||||
All the files will be packaged in `ezbookkeeping.tar.gz`.
|
All the files will be packaged in `ezbookkeeping.tar.gz`.
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ Types:
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
-r, --release Build release (The script will use environment variable "RELEASE_BUILD" to detect whether this is release building by default)
|
-r, --release Build release (The script will use environment variable "RELEASE_BUILD" to detect whether this is release building by default)
|
||||||
-f, --file Package file name (For "package" type only)
|
-o, --output Package file name (For "package" type only)
|
||||||
-t, --tag Docker tag (For "docker" type only)
|
-t, --tag Docker tag (For "docker" type only)
|
||||||
-h, --help Show help
|
-h, --help Show help
|
||||||
EOF
|
EOF
|
||||||
@@ -55,7 +55,7 @@ parse_args() {
|
|||||||
--release | -r)
|
--release | -r)
|
||||||
RELEASE="1"
|
RELEASE="1"
|
||||||
;;
|
;;
|
||||||
--file | -f)
|
--output | -o)
|
||||||
PACKAGE_FILENAME="$2"
|
PACKAGE_FILENAME="$2"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user