Эх сурвалжийг харах

Z991239-1017 #comment fea 优化启动初始化菜单为相对路径

陈良瑜80374463 4 жил өмнө
parent
commit
d8d8455ff3

+ 1 - 1
addin/cfg/SpShell.ini

@@ -4,4 +4,4 @@ Count=1
 
 [startInit]
 TextName=Begin Init
-CmdLine=/home/pcacc/run/version/0.0.2.1/bin/Chromium/cefclient --url=file:///home/pcacc/run/version/0.0.2.1/res/ManagerDesktop/initPassword.html --no-sandbox --center-size=800*900 --hide-controls
+CmdLine=./res/RunScript/startInit.sh

+ 12 - 0
addin/res/RunScript/startInit.sh

@@ -0,0 +1,12 @@
+#!/bin/sh
+bindir="${PWD}/bin" 
+echo "1"$bindir
+versiondir=${PWD} 
+echo "2"$versiondir
+cefpath="${bindir}/Chromium/cefclient"
+echo "3"$cefpath
+urlpath="${versiondir}/res/ManagerDesktop/initPassword.html"
+echo "4"$urlpath
+cmdpath="${cefpath} --url=file:///${urlpath} --no-sandbox --center-size=800*900 --hide-controls"
+echo "5"$cmdpath
+exec ${cmdpath}