终端增强工具,取瑞士军刀之意
$ npm install -g ruishimacOS 系统,通过 brew 安装 adb 和 scrcpy:
$ brew install scrcpy
# https://zhuanlan.zhihu.com/p/662190715
$ brew install android-platform-tools使用scrcpy录制手机屏幕
点击展开详细说明
USAGE
$ ruishi adb tv [--audio] [--display]
FLAGS
--[no-]audio 是否在录制时包含音频
--[no-]display 是否在录制时显示屏幕内容
DESCRIPTION
使用scrcpy录制手机屏幕
EXAMPLES
$ ruishi adb tv
开始录制手机屏幕,视频将保存在当前目录
$ ruishi adb tv --no-display
开始录制手机屏幕但不显示屏幕内容,视频将保存在当前目录
$ ruishi adb tv --no-audio
开始录制手机屏幕但不录制音频,视频将保存在当前目录See code: src/commands/adb/tv.ts
通过 adb 给手机添加代理,需要提前
- 安装: adb
- 通过proxyman/charles/fiddler等工具,安装证书
点击展开详细说明
使用教程
$ ruishi proxy on [port] # 开启代理,默认 9090
$ ruishi proxy off # 关闭代理