install-20210412.cmd 810 B

1234567891011121314151617181920212223242526
  1. @echo off
  2. 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')
  3. del input.txt
  4. REM 安装 Java
  5. echo Y >> input.txt
  6. REM 使用 Java 11
  7. echo 11 >> input.txt
  8. REM 使用 JRE
  9. echo 1 >> input.txt
  10. REM 使用 32 位 JRE 的兼容所有系统, 也方便如果要用 mirai-native
  11. echo x32 >> input.txt
  12. echo Y >> input.txt
  13. echo Y >> input.txt
  14. echo Y >> input.txt
  15. echo Y >> input.txt
  16. echo Y >> input.txt
  17. echo Y >> input.txt
  18. mcl-installer.exe < input.txt
  19. del input.txt
  20. del mcl-installer.exe
  21. cmd /c mcl.cmd --update-package net.mamoe:mirai-api-http --channel stable --type plugin
  22. echo
  23. echo
  24. echo 安装成功, 以后执行 mcl.cmd 即可启动 Mirai Console
  25. echo Installation succeed. Run mcl.cmd to start Mirai Console.
  26. pause