mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-22 02:34:26 +08:00
getting app version from package.json
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
mode=$1;
|
mode=$1;
|
||||||
version=`grep "const LAB_VERSION" lab.go | awk -F '=' '{print $2}' | tr -d ' ' | tr -d '"'`;
|
version=`grep '"version": ' package.json | awk -F ':' '{print $2}' | tr -d ' ' | tr -d ',' | tr -d '"'`;
|
||||||
|
|
||||||
if [ "$mode" == "--snapshot" ]; then
|
if [ "$mode" == "--snapshot" ]; then
|
||||||
version="SNAPSHOT-"`date "+%Y%m%d"`;
|
version="SNAPSHOT-"`date "+%Y%m%d"`;
|
||||||
|
|||||||
Reference in New Issue
Block a user