Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windwos 上用快捷方式打开时, 可能会无法安装自动更新 #1449

Closed
Him188 opened this issue Jan 5, 2025 · 0 comments · Fixed by #1626
Closed

Windwos 上用快捷方式打开时, 可能会无法安装自动更新 #1449

Him188 opened this issue Jan 5, 2025 · 0 comments · Fixed by #1626
Labels
desktop 平台: 桌面 (macOS + Windows) P1 重要优先级, 需要优先考虑 (Major)
Milestone

Comments

@Him188
Copy link
Member

Him188 commented Jan 5, 2025

问题描述

logger.info { "Installing update for Windows" }
val appDir = File(System.getProperty("user.dir") ?: throw IllegalStateException("Cannot get app directory"))
logger.info { "Current app dir: ${appDir.absolutePath}" }
if (!appDir.resolve("Ani.exe").exists()) {
logger.info { "Current app dir does not have 'Ani.exe'. Fallback to manual update" }
return InstallationResult.Failed(InstallationFailureReason.UNSUPPORTED_FILE_STRUCTURE)
}

复现步骤

No response

Ani 版本号

4.1.0

操作系统

Windows

应用日志


2025-01-03 16:04:26,486 [INFO ] app.tools.update.DefaultFileDownloader: Successfully downloaded: https://d.myani.org/v4.2.1/ani-4.2.1-windows-x86_64.zip
2025-01-03 16:28:04,958 [INFO ] app.tools.update.WindowsUpdateInstaller: Installing update for Windows
2025-01-03 16:28:04,958 [INFO ] app.tools.update.WindowsUpdateInstaller: Current app dir: C:\WINDOWS\system32
2025-01-03 16:28:04,958 [INFO ] app.tools.update.WindowsUpdateInstaller: Current app dir does not have 'Ani.exe'. Fallback to manual update

@Him188 Him188 added P2 一般优先级, 可以等待 (Normal) P1 重要优先级, 需要优先考虑 (Major) desktop 平台: 桌面 (macOS + Windows) and removed P2 一般优先级, 可以等待 (Normal) labels Jan 5, 2025
@Him188 Him188 added this to the 4.5.0 milestone Feb 1, 2025
@Him188 Him188 closed this as completed in c8c785d Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop 平台: 桌面 (macOS + Windows) P1 重要优先级, 需要优先考虑 (Major)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant