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.
26 lines
769 B
26 lines
769 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
|
||
3 years ago
|
categories: 启动器
|
||
3 years ago
|
toc: true
|
||
|
---
|
||
|
|
||
|
> 本文由 huanghongxun 编写。
|
||
|
|
||
|
## 背景
|
||
|
使用 authlib-injector 认证的服主可以通过本教程提供的方法使 HMCL 默认在打开时弹窗要求创建对应认证服务器的账户。
|
||
|
## 方法
|
||
|
在 HMCL 启动器同级目录下创建 `authlib-injectors.json` 文件,此时文件夹目录结构如下图所示:
|
||
|
|
||
|
![](/assets/img/docs/authlib-injector/image.png)
|
||
|
|
||
|
(注意,请确保打包后的整合包不包含 `hmcl.json` 文件,否则无法生效) `authlib-injectors.json` 文件的示例如下
|
||
|
```
|
||
|
{
|
||
|
"urls": [
|
||
|
"https://example.yggdrasil.yushi.moe/"
|
||
|
]
|
||
|
}
|
||
|
```
|