gibadb
一个方便安装 Android SDK 命令行和平台工具的工具。
面向开发者
本 README 描述了此 Dart 包附带的 CLI 工具。有关包
文档,请参阅相应的 README。
功能
- 跨平台支持
- Windows
- MacOS
- Linux
- 可升级的平台工具
- 最小化,但仍是标准 SDK 安装(兼容 Android Studio)
获取方式
二进制文件可在 发布页面找到。
或者,对于已安装 Dart SDK 的用户,可以使用 pub 来激活
该包……
$ dart pub global activate --source git https://github.com/hacker1024/gibadb.git
需要以下外部工具
- Java
- p7zip 或
unzip(macOS 和 Linux) - PowerShell 5.0+(Windows)
用法
- 打开终端(或命令提示符)
- 运行
gibadb - 接受任何必需的许可证
- 将必需的行添加到您的 PATH
选项
$ gibadb --help
Usage: gibadb.dart [options] [SDK installation directory]
Install the Android SDK command-line and platform tools.
If no SDK installation directory is provided, a common, platform-specific location is chosen.
-v, --verbose Show more installation details.
--[no-]launch-path-settings Open the system path settings after installation.
(defaults to on)
--[no-]platform-tools Install the SDK platform tools as well as the base SDK command-line tools.
(defaults to on)
-a, --archive=<command-line tools archive> Use an existing SDK command-line tools archive, instead of downloading one.
--keep-archive Don't delete the SDK command-line tools archive.
-h, --help Show the usage information.