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

feat: 从环境变量$PATH$ADB_HOME中寻找adb #201

Open
Cryolitia opened this issue Sep 13, 2023 · 0 comments
Open

feat: 从环境变量$PATH$ADB_HOME中寻找adb #201

Cryolitia opened this issue Sep 13, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@Cryolitia
Copy link
Member

Cryolitia commented Sep 13, 2023

说说你遇到的问题?

在大部分Linux系统中,adb可以轻松的使用包管理器安装,因此没有必要强制使用自己下载的adb。此行为也有利于下游打包者正确配置软件包依赖关系,在安装时自动完成依赖项的安装,简化用户使用步骤。

此外,在Nix0S等非FHS Linux中,从其他操作系统预构建的adb二进制文件可能无法运行。

有什么好的想法?

检测环境变量$PATH$ADB_HOME中是否存在adb可执行文件,若已有则默认使用环境变量中的。

同时将设置中的「强制替换adb」按钮改为开关:若开关关闭则先检测环境变量;若开关打开则忽略环境变量,下载adb至用户配置文件目录并使用用户配置文件目录下的。

其他内容

No response

@Cryolitia Cryolitia added the enhancement New feature or request label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant