[patch] 修正ks3包名问题

This commit is contained in:
Gitea Actions Bot
2025-10-11 16:43:59 +08:00
parent 99446eca74
commit bcb76c0a99
5 changed files with 29 additions and 6 deletions

View File

@@ -9,7 +9,12 @@ import os
import sys
import logging
from pathlib import Path
from ks3.connection import Connection
try:
from ks3.connection import Connection
except ImportError:
print("ERROR: ks3sdk not installed. Please run: pip install ks3sdk")
sys.exit(1)
# Configure logging
logging.basicConfig(

View File

@@ -346,7 +346,9 @@ jobs:
Write-Host "Step 4.8: Upload installer to KS3";
Write-Host "==========================================";
pip install ks3 2>$null;
# Install KS3 SDK
Write-Host "Installing KS3 SDK...";
python -m pip install ks3sdk --quiet;
python .gitea/scripts/upload_installer_to_ks3.py;