add local mode support

This commit is contained in:
hjmmc 2020-04-17 17:24:12 +08:00
parent 9074fdf31b
commit 8aeb90d5ac

View file

@ -76,11 +76,11 @@ downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/master"
# downloadHost="https://raw.githubusercontent.com/xzhih/one-key-hidpi/dev"
# downloadHost="http://127.0.0.1:8080"
shellDir="$( cd "$( dirname "$0" )" && pwd )"
shellDir="$(dirname $0)"
if [ -d "${shellDir}/displayIcons" ];then
echo $langLocalMode
downloadHost="fiel://${shellDir}"
downloadHost="file://${shellDir}"
else
echo $langRemoteMode
fi