Skip to content

Commit

Permalink
更新启动脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
nannanness committed Feb 16, 2022
1 parent fd45325 commit f1c3c37
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions dingBoot-linux.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ extract_jar() {

start_pierced() {
cd ../
if [ ! -d "pierced/" ];then
git clone https://github.com/open-dingtalk/pierced.git
cd pierced/linux
if [ ! -d "dingtalk-pierced-client/" ];then
git clone https://github.com/open-dingtalk/dingtalk-pierced-client.git
cd dingtalk-pierced-client/linux
chmod 777 ./ding
./ding -config=./ding.cfg -subdomain=${appKey} $port
else
cd pierced/linux
cd dingtalk-pierced-client/linux
chmod 777 ./ding
./ding -config=./ding.cfg -subdomain=${appKey} $port
fi
Expand Down
8 changes: 4 additions & 4 deletions dingBoot-mac.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ extract_jar() {

start_pierced() {
cd ../
if [ ! -d "pierced/" ];then
git clone https://github.com/open-dingtalk/pierced.git
cd pierced/mac_64
if [ ! -d "dingtalk-pierced-client/" ];then
git clone https://github.com/open-dingtalk/dingtalk-pierced-client.git
cd dingtalk-pierced-client/mac
chmod 777 ./ding
./ding -config=./ding.cfg -subdomain=${appKey} $port
else
cd pierced/mac_64
cd dingtalk-pierced-client/mac
chmod 777 ./ding
./ding -config=./ding.cfg -subdomain=${appKey} $port
fi
Expand Down
6 changes: 3 additions & 3 deletions dingBoot-windows.bat
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set appSecret=%4
set agentId=%5
set corpId=%6

if not exist ../pierced (
git clone https://github.com/open-dingtalk/pierced.git ../pierced
if not exist ../dingtalk-pierced-client (
git clone https://github.com/open-dingtalk/dingtalk-pierced-client.git ../dingtalk-pierced-client
)

start cmd /k "mvn clean package && move backend\target\*.jar %appName%.jar && java -jar %appName%.jar --port=%port% --appKey=%appKey% --appSecret=%appSecret% --agentId=%agentId% --corpId=%corpId%"
start cmd /k "cd ../pierced/windows_64 && ding -config=ding.cfg -subdomain=%appKey% %port%"
start cmd /k "cd ../dingtalk-pierced-client/windows_64 && ding -config=ding.cfg -subdomain=%appKey% %port%"

0 comments on commit f1c3c37

Please sign in to comment.