Windows的简单粗暴方法:下载release中的对应文件,改名为hsn.exe扔到C:\Windows\System32
(只要给hsn.exe添加到环境变量Path路径就行了)
Linux的简单粗暴方法:下载release中的对应文件,改名为hsn扔到\bin文件夹下 (只要有环境变量就行了)
hsn set
- -p (--path) : 填写Hoshino工程目录的绝对路径,或者填写
.将使用当前目录 - -i (--image) : 设置使用Github的镜像源地址,默认为
https://github.com - --pip : 设置安装python依赖工具,默认为
pip3
例如
hsn set --path=/root/hoshinohsn set -i=https://github.comhsn set --pip="python38 -m pip"
可用镜像源
https://hub.fastgit.orghttps://github.com.cnpmjs.orghttps://github.bajins.comhttps://github.rc1844.workers.dev
hsn list
获取已适配插件列表及其序号
hsn install
请确保安装了git, python
例如 hsn install music
可以通过序号安装
例如 hsn install 1
hsn update
hsn export [plugin name]
然后填写仓库地址,所需依赖和资源文件就行了
bucket文件夹保存了已适配插件的信息,
你可以向本项目提交issue或pr来发布您的插件到hsn插件仓库
插件适配指南