27 lines
844 B
Bash
Executable File
27 lines
844 B
Bash
Executable File
#!bash
|
|
source ./common.sh
|
|
|
|
cd ./pomelo && npm install
|
|
echo '============ pomelo npm installed ============'
|
|
cd ..
|
|
cd ./pomelo-globalchannel-plugin && npm install
|
|
echo '============ pomelo-globalchannel-plugi npm installed ============'
|
|
cd ..
|
|
cd ./game-server && npm install
|
|
echo '============ game-server npm installed ============'
|
|
cd ..
|
|
cd ./proxy && npm install
|
|
echo '============ proxy npm installed ============'
|
|
cd ..
|
|
cd ./web-server && npm install
|
|
echo '============ web-server npm installed ============'
|
|
cd ..
|
|
|
|
tag_name=`git status |grep '# On branch '|sed 's/# On branch //g'`
|
|
dir_name=`basename $PWD`
|
|
package_name=${dir_name}.tar.gz
|
|
|
|
tar --exclude=*.git --exclude=game-server/logs -cvzf target/${package_name} pomelo pomelo-globalchannel-plugin shared game-server proxy common.sh reload.sh restart.sh config
|
|
|
|
echo 'success'
|