AzurLaneAutoScript icon indicating copy to clipboard operation
AzurLaneAutoScript copied to clipboard

启动时 git config --local --unset http.proxy 命令执行无反应

Open linzxv opened this issue 2 years ago • 3 comments

在提问之前...

  • [X] 我已经搜索了现有的 issues
  • [X] 我在提问题之前至少花费了 5 分钟来思考和准备
  • [X] 我已经阅读了 Wiki 中的 常见问题(FAQ)
  • [X] 我正在使用最新版的 Alas

描述你的问题

启动Alas.exe 时一直卡在如下图所示位置
Snipaste_2022-07-16_17-48-13.png

如何复现

  1. 前往 '...'
  2. 点击 '....'
  3. 滑动到 '....'
  4. 出现问题

预期行为

No response

相关 Logs

No response

截图

No response

还有别的吗?

No response

linzxv avatar Jul 16 '22 09:07 linzxv

#补充: 今天重新试了一下,如下: ==================== SET GIT PROXY ==================== "D:/400-Life/410-Game/412-BLHX/AzurLaneAutoScript/toolkit/Git/mingw64/bin/git.exe" config --local --unset http.proxy [ allowed failure ], error_code: 5

linzxv avatar Jul 31 '22 16:07 linzxv

在Cmd窗口标题栏上右键->默认值->选项->取消勾选“快速编辑模式”,然后重新启动试试

image

Sakura9s avatar Aug 01 '22 07:08 Sakura9s

刚刚试了一下,还是不行

linzxv avatar Aug 01 '22 11:08 linzxv

我必然触发这个问题,根本没法跑 每次打开卡在设置代理这里 git版本卸载重装过目前是最新的

$ git version
git version 2.40.0.windows.1

image

MuNitCat avatar Mar 26 '23 15:03 MuNitCat

问题已解决

问题定位: AzurLaneAutoScript\toolkit\Git 使用的git造成的问题

解决方法1:(非程序员不推荐该方法)

当电脑上已安装git时,修改AzurLaneAutoScript\config\deploy.yaml 中git的路径

需要修改为电脑上自己的git路径

GitExecutable: ./toolkit/Git/mingw64/bin/git.exe  

解决方法2:(无脑)

打开[Git官网](https://git-scm.com/download/win)下载 Portable ("thumbdrive edition") 版本(即免安装版本),替换掉\toolkit\Git中的git,先删除原来的再复制进去

Portable ("thumbdrive edition")

32-bit Git for Windows Portable

64-bit Git for Windows Portable

选择合适电脑的版本

下载后是一个名为PortableGit-2.40.0-64-bit.7z.exe的exe可执行文件,直接运行会自动解压

贴一个Git的[阿里镜像](https://registry.npmmirror.com/binary.html?path=git-for-windows/),同样可以下载Portable版本

MuNitCat avatar Mar 26 '23 16:03 MuNitCat