更新 .github/workflows/build-exe.yml

This commit is contained in:
miu
2026-03-15 22:08:51 +08:00
Unverified
parent 4c8cfb1177
commit 8b41e59e1d

View File

@@ -39,25 +39,19 @@ jobs:
# 步骤3安装 Python使用正确的文件名 # 步骤3安装 Python使用正确的文件名
- name: Install Python in Wine - name: Install Python in Wine
run: | run: |
# 使用绝对路径并添加调试信息
echo "Current directory: $(pwd)" echo "Current directory: $(pwd)"
echo "Files in current directory:" ls -lah
ls -la
if [ ! -f python-3.9.9-amd64.exe ]; then
# 确保文件存在
if [ ! -f "python-3.9.9-amd64.exe" ]; then
echo "Installer not found!" echo "Installer not found!"
exit 1 exit 1
fi fi
# 尝试用 wineconsole 而不是 wine有时更稳定 # 直接用 wine 运行
xvfb-run wineconsole --backend=curses cmd /c "python-3.9.9-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0" xvfb-run -a wine python-3.9.9-amd64.exe /quiet InstallAllUsers=1 PrependPath=1 Include_test=0
# 等待安装完成 # 等待安装
sleep 15 sleep 20
# 验证安装进程
echo "Installation completed, checking..."
# 步骤4更彻底地查找 Python # 步骤4更彻底地查找 Python
- name: Find and verify Python - name: Find and verify Python