-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from powerAn2020/dev
修复一些bug
- Loading branch information
Showing
12 changed files
with
95 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,44 @@ | ||
#!/bin/bash | ||
SH_DIR=$(cd "$(dirname "$0")";pwd) | ||
baseDIR=$(cd "$(dirname "$0")" || exit; pwd) | ||
|
||
if [ -f ${SH_DIR}/ZeroTierForKSU.zip ];then | ||
rm ${SH_DIR}/ZeroTierForKSU.zip | ||
if [ -f "${baseDIR}/$1" ]; then | ||
rm "${baseDIR}/$1" | ||
fi | ||
cd ${SH_DIR}/ui-src | ||
npm i | ||
npm audit fix | ||
npm run build | ||
mv -f build ${SH_DIR}/webroot | ||
cd ${SH_DIR} | ||
zip -r -o -X -ll ZeroTierForKSU.zip ./ -x '.git/*' -x '.gitignore' -x '.github/*' -x '.vscode/*' -x 'ui-src' -x 'build.sh' -x 'update.json' | ||
|
||
moduleFile="${baseDIR}/module_file" | ||
|
||
cd ${baseDIR} | ||
# 构建zip命令 | ||
zipCmd="zip -r -o -X $1 ./ " | ||
|
||
# 遍历目录下的文件,如果不在排除列表中则添加到zip命令中 | ||
for file in $(ls -a "$baseDIR"); do | ||
# echo "---${file##*/}---" | ||
# filename=$(basename "$file") | ||
# echo "===$filename===" | ||
if [[ "${file}" == ".." || "${file}" == "." ]]; then | ||
continue; | ||
fi | ||
add="A" | ||
while read white;do | ||
if [[ "${white}" == "${file}" ]]; then | ||
# echo "===$white *=* $file======"; | ||
add="N"; | ||
break; | ||
fi | ||
done < $moduleFile | ||
|
||
if [[ "$add" == "A" ]]; then | ||
if [ -d $file ];then | ||
zipCmd="${zipCmd} -x '${file}/*'" | ||
else | ||
zipCmd="${zipCmd} -x '$file'" | ||
fi | ||
fi | ||
done | ||
|
||
# 打印最终的zip命令 | ||
echo "$zipCmd" | ||
|
||
# 执行zip命令 | ||
eval "$zipCmd" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Merge pull request #5 from powerAn2020/dev 开机自启修复 | ||
修复bug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
清理代码,增加dev标识,设置页面增加代码仓库 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
bin | ||
META-INF | ||
webroot | ||
api.sh | ||
customize.sh | ||
module.prop | ||
README.md | ||
service.sh | ||
uninstall.sh | ||
zerotier.inotify | ||
zerotier.sh | ||
zerotier-cli | ||
zerotier-idtool | ||
zerotier-one | ||
LICENSE | ||
changelog.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.12.2","versionCode":10331,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/releases/download/1.12.2/ZeroTierForKSU-arm-1.12.2.zip","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/main/changelog.md"} | ||
{"version":"1.12.2","versionCode":10331,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/releases/download/1.12.2/ZeroTierForKSU-arm-1.12.2.zip","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/main/changelog.md"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"version":"1.12.2","versionCode":10331,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/releases/download/1.12.2/ZeroTierForKSU-arm64-1.12.2.zip","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/main/changelog.md"} | ||
{"version":"1.12.2","versionCode":10331,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/releases/download/1.12.2/ZeroTierForKSU-arm64-1.12.2.zip","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/main/changelog.md"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":"1.12.2","versionCode":10345,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/actions/runs/8741063431/artifacts/1426553784","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/dev/changelog_dev.md"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"version":"1.12.2","versionCode":10345,"zipUrl":"https://github.com/powerAn2020/ZeroTierOneForKSU/actions/runs/8741063431/artifacts/1426553917","changelog":"https://raw.githubusercontent.com/powerAn2020/ZeroTierOneForKSU/dev/changelog_dev.md"} |