You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
838 B

3 years ago
---
title: "Authlib-Injector 服务器设置指南"
3 years ago
permalink: /launcher/authlib-injector.html
3 years ago
date: 2021-08-22 23:18:02 +0800
categories: 启动器
3 years ago
toc: true
---
> 本文由 huanghongxun 编写。
## 背景
3 years ago
使用 authlib-injector 认证的服主可以通过本教程提供的方法使 HMCL 默认在打开时弹窗要求创建对应认证服务器的账户。
3 years ago
## 方法
3 years ago
在 HMCL 启动器同级目录下创建 `authlib-injectors.json` 文件,此时文件夹目录结构如下图所示:
![](/assets/img/docs/authlib-injector/image.png)
(注意,请确保打包后的整合包不包含 `hmcl.json` 文件,否则无法生效。该文件默认为隐藏状态,需开启隐藏文件显示)
`authlib-injectors.json` 文件的示例如下
3 years ago
```
{
"urls": [
"https://example.yggdrasil.yushi.moe/"
]
}
```