Skip to content

ly525/ruishi

Repository files navigation

ruishi

终端增强工具,取瑞士军刀之意

oclif Version Downloads/week Enligsh Doc

安装

$ npm install -g ruishi

前置准备

需要提前安装: adbscrcpy

macOS 系统,通过 brew 安装 adb 和 scrcpy:

$ brew install scrcpy
# https://zhuanlan.zhihu.com/p/662190715
$ brew install android-platform-tools

命令

ruishi adb tv

使用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

ruishi proxy

通过 adb 给手机添加代理,需要提前

  1. 安装: adb
  2. 通过proxyman/charles/fiddler等工具,安装证书
点击展开详细说明
使用教程
  $ ruishi proxy on [port] # 开启代理,默认 9090
  $ ruishi proxy off # 关闭代理

About

termial enhanced tools || 终端增强工具

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published