Skip to content

Commit

Permalink
Add one-key installer for community SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Apr 11, 2021
1 parent fd53349 commit 7f2aa44
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

**mirai 官方提供 [Kotlin/Java 等 JVM 平台语言开发支持](#jvm-平台-mirai-开发)。如果不熟悉这些语言,请使用以下社区 SDK:**

要使用这些插件需要先配置 Mirai Console,推荐阅读 [用户手册](UserManual.md)
要使用这些社区 SDK 需要先配置 Mirai Console,可以使用 [一键安装](files/install-20210412.cmd)(32位,带 HTTP 插件),也可以阅读 [用户手册](UserManual.md) 进行个性化安装

你可以使用一个或多个语言来开发插件,而且在自己开发的同时也可以[使用下载的插件](UserManual.md#下载和安装插件)

Expand Down
2 changes: 1 addition & 1 deletion docs/UserManual.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Mirai - UserManual

Mirai 用户手册。本文面向对开发不熟悉而希望使用 Mirai 的用户。
Mirai 用户手册。本文面向对开发不熟悉而希望使用 Mirai 的用户。如果你要开发,请先阅读 [开发文档](README.md)

## 启动 Mirai

Expand Down
26 changes: 26 additions & 0 deletions docs/files/install-20210412.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@echo off
powershell (new-object System.Net.WebClient).DownloadFile( 'https://github.com/iTXTech/mcl-installer/releases/download/2827601/mcl-installer-2827601-windows-amd64.exe','mcl-installer.exe')
del input.txt
REM 安装 Java
echo Y >> input.txt
REM 使用 Java 11
echo 11 >> input.txt
REM 使用 JRE
echo 1 >> input.txt
REM 使用 32 位 JRE 的兼容所有系统, 也方便如果要用 mirai-native
echo x32 >> input.txt
echo Y >> input.txt
echo Y >> input.txt
echo Y >> input.txt
echo Y >> input.txt
echo Y >> input.txt
echo Y >> input.txt
mcl-installer.exe < input.txt
del input.txt
del mcl-installer.exe
cmd /c mcl.cmd --update-package net.mamoe:mirai-api-http --channel stable --type plugin
echo
echo
echo 安装成功, 以后执行 mcl.cmd 即可启动 Mirai Console
echo Installation succeed. Run mcl.cmd to start Mirai Console.
pause

0 comments on commit 7f2aa44

Please sign in to comment.