diff --git a/README.md b/README.md index ea9d1ed..53545ff 100644 --- a/README.md +++ b/README.md @@ -50,5 +50,6 @@ pip install -r requirements.txt ``` # show help information -./dist/guardian +cd ./dist/guardian_1.1.0/ +./bin/guardian checkout config.json.template ``` diff --git a/package.sh b/package.sh index c3ca785..e09a82f 100755 --- a/package.sh +++ b/package.sh @@ -11,19 +11,12 @@ if [ $? != 0 ];then exit -1 fi -pyinstaller --onefile alert.py -if [ $? != 0 ];then - echo "[ERROR] failed to build $APP_NAME module: alert" - exit -1 -fi - cd dist mkdir -p $PACKAGE_DIR/bin mkdir -p $PACKAGE_DIR/logs cp $APP_NAME $PACKAGE_DIR/bin -cp alert $PACKAGE_DIR/bin mkdir -p $PACKAGE_DIR/config cp ../config.json.template $PACKAGE_DIR/config -tar zcvf $PACKAGE_DIR.tar.gz $PACKAGE_DIR +tar zcvf $PACKAGE_DIR.tar.gz $PACKAGE_DIR \ No newline at end of file