Skip to content
This repository has been archived by the owner on Oct 27, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (20 loc) · 749 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 749 Bytes

Go-cqhttp-device-json-generator

用于在 adb shell 中生成 go-cqhttp device.json 的 shell 脚本

用法

  • 修改 custom 部分的内容( protocol 等)
  • 在 termux shell 中执行(推荐)
    git clone https://github.com/5kind/go-cqhttp-device-json-generator
    sudo bash go-cqhttp-device-json-generator/device.sh > device.json
    
  • 在 adb shell 中执行
    git clone https://github.com/5kind/go-cqhttp-device-json-generator
    cd go-cqhttp-device-json-generator
    adb push device.sh /sdcard
    adb shell sh /sdcard/device.sh > device.json
    
    (可能需要修改格式)

其他

  • 详阅代码 device.sh
  • bug 优化建议等可提交 issue