Commit dd20c95c authored by 谢卓城's avatar 谢卓城

修改:1.生成完成自动打开小程序开发工具

parent bf0dcf4d
......@@ -91,24 +91,25 @@ cd ..
sysOS=`uname -s`
if [ $sysOS == "Darwin" ];then
# Mac OS X 操作系统
open ./dist
open ./dist/app.wxss
# /Applications/wechatwebdevtools.app/Contents/MacOS/cli open --p ./dist
if [ $? -ne 0 ]; then
echo "########## 打开小程序工具失败 ##########"
open ./dist
open ./dist/app.wxss
else
echo "########## 双击app.wxss打开小程序 ##########"
fi
elif [ $sysOS == "Linux" ];then
echo "########## 双击app.wxss打开小程序 ##########"
open ./dist
open ./dist/app.wxss
else
echo "########## 双击app.wxss打开小程序 ##########"
open ./dist
open ./dist/app.wxss
fi
# 初始化 git
git init
git remote remove origin
echo "########## 启动小程序实时服务 ##########"
npm run dev
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment