upp
Some checks failed
测试 / apt (Home-debian11) (push) Has been cancelled
测试 / apt (Home_armv7-ubuntu20.04) (push) Has been cancelled
测试 / apt (Home-debian12) (push) Has been cancelled
测试 / apt (Home_arm64-ubuntu24.04) (push) Has been cancelled
测试 / apt (Home-kali) (push) Has been cancelled
测试 / apt (Home-ubuntu-20.04) (push) Has been cancelled
测试 / apt (Home-ubuntu-latest) (push) Has been cancelled
测试 / apt (Home-ubuntu18.04) (push) Has been cancelled
测试 / apt (Home-ubuntu20.04) (push) Has been cancelled
测试 / apt (Home-ubuntu24.04) (push) Has been cancelled
测试 / cmd (Windows10) (push) Failing after 7h46m41s
测试 / apt (Home-ubuntu-22.04) (push) Has been cancelled
测试 / apt (Home-ubuntu22.04) (push) Has been cancelled
测试 / apt (Home_arm64-debian11) (push) Has been cancelled
测试 / apt (Home_arm64-debian12) (push) Has been cancelled
测试 / apt (Home_arm64-kali) (push) Has been cancelled
测试 / apt (Home_arm64-ubuntu-20.04) (push) Has been cancelled
测试 / apt (Home_arm64-ubuntu-22.04) (push) Has been cancelled
测试 / apt (Home_arm64-ubuntu-latest) (push) Has been cancelled
测试 / apt (Home_arm64-ubuntu18.04) (push) Has been cancelled
测试 / apt (Home_armv7-debian11) (push) Has been cancelled
测试 / apt (Home_armv7-debian12) (push) Has been cancelled
测试 / apt (Home_armv7-ubuntu18.04) (push) Has been cancelled
测试 / apt (Home_armv7-ubuntu22.04) (push) Has been cancelled
测试 / apt (Home_armv7-ubuntu24.04) (push) Has been cancelled
测试 / dnf (Home-fedora39) (push) Has been cancelled
测试 / dnf (Home-fedora40) (push) Has been cancelled
测试 / dnf (Home-fedora41) (push) Has been cancelled
测试 / dnf (Home-fedora42) (push) Has been cancelled
测试 / pve (push) Successful in 2h24m35s

This commit is contained in:
2026-03-24 13:35:37 +08:00
parent 8e8b399533
commit f0c188e6dd
4 changed files with 654 additions and 647 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
* -diff

View File

@@ -6,6 +6,7 @@ env:
mirror: ${{ vars.GitUrl }}/releases/download/latest_
pipmirror: http://mirrors.aliyun.com/pypi/simple
trusted-host: mirrors.aliyun.com
init-args: init -user=admin -passwd=admin --pipmirror=${{ env.pipmirror }} --trusted-host=${{ env.trusted-host }} --mirror=${{ vars.GitUrl }}
jobs:
apt:
@@ -99,7 +100,7 @@ jobs:
ls
cd jcm
python3 -m venv .venv
.venv/bin/python3 server/jcm.py init -user=admin -passwd=admin --pipmirror=${{ env.pipmirror }} --trusted-host=${{ env.trusted-host }}
.venv/bin/python3 server/jcm.py ${{ init-args }}
# python3 server/jcm.py --test -user=admin -passwd=admin --pipmirror=http://mirrors.aliyun.com/pypi/simple --trusted-host=mirrors.aliyun.com
- name: Test Main
run: |
@@ -219,10 +220,11 @@ jobs:
- name: 运行测试脚本
run: |
python3.13 -m venv .venv
.\.venv\Scripts\python server/jcm.py init -user=admin -passwd=admin --mirror=${{ vars.GitUrl }}
.\.venv\Scripts\python server/jcm.py ${{ init-args }}
- name: Test Main
run: |
# cd jcm
set PATH=%PATH%;%CD%\Tools\.bash\bin
.\.venv\Scripts\python -m pip install requests -i ${{ env.pipmirror }} --trusted-host ${{ env.trusted-host }}
.\.venv\Scripts\python -m pip install websocket-client -i ${{ env.pipmirror }} --trusted-host ${{ env.trusted-host }}
start .\.venv\Scripts\python server/jcm.py

4
.gitignore vendored
View File

@@ -8,3 +8,7 @@ __pycache__
/Tools/clrtest.py
.venv
.logs
/.vs
/Test/Test_Get
/linkdir
/.jcm

View File

@@ -626,13 +626,13 @@ def init(pip: bool, info: Dict[str, Any]):
# 从sys.argv中获取参数
pipmirror = ""
for i in sys.argv:
if i[:12] == "-pipmirror=":
if i[:12] == "--pipmirror=":
pipmirror = " -i " + i[12:]
for i in sys.argv:
if i[:15] == "--trusted-host":
if i[:15] == "--trusted-host=":
pipmirror += " --trusted-host " + i[15:]
cmd = ".venv\\Scripts\\python" + " -m pip install --upgrade pip"
cmd = ".venv\\Scripts\\python" + " -m pip install --upgrade pip " + pipmirror
logs.logs_i(TAG,cmd,info)
os.system(cmd)
logs.logs_i(TAG, lgt(info,".venv\\Scripts\\python" + " -m pip install psutil==" + psutilv + " " + pipmirror), info)