1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-07 16:06:15 +00:00

Check NPM & gulp installations in release script

This commit is contained in:
Loïc Blot 2018-12-12 12:08:42 +01:00
parent 3b35b5e9bf
commit adb9db12f4

View File

@ -12,6 +12,9 @@ SRC_DIR=`dirname $0`"/.."
RELEASE_VERSION=${1} RELEASE_VERSION=${1}
echo "Release version set to ${RELEASE_VERSION}" echo "Release version set to ${RELEASE_VERSION}"
which npm > /dev/null
which gulp > /dev/null
sed -ri 's/(.*)<version>(.+)<\/version>/\1<version>'${RELEASE_VERSION}'<\/version>/g' ${SRC_DIR}/appinfo/info.xml sed -ri 's/(.*)<version>(.+)<\/version>/\1<version>'${RELEASE_VERSION}'<\/version>/g' ${SRC_DIR}/appinfo/info.xml
npm install npm install
gulp uglify gulp uglify