Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PublicShell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢卓城
PublicShell
Commits
dd20c95c
Commit
dd20c95c
authored
Feb 07, 2021
by
谢卓城
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改:1.生成完成自动打开小程序开发工具
parent
bf0dcf4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
MiniprogramTemplate.sh
MiniprogramTemplate.sh
+5
-4
No files found.
MiniprogramTemplate.sh
View file @
dd20c95c
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment