mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-10-30 02:42:57 +08:00
feat: 添加一个启动服务说明文件
This commit is contained in:
parent
b8be68d66d
commit
8b6dc81ee1
@ -1,10 +1,14 @@
|
|||||||
/* eslint-disable no-console */
|
/* eslint-disable no-console */
|
||||||
import { copy, emptyDir, ensureDir } from 'fs-extra';
|
import { copy, emptyDir, ensureDir } from 'fs-extra';
|
||||||
|
import { writeFile } from 'fs/promises';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
||||||
const base = resolve(process.cwd());
|
const base = resolve(process.cwd());
|
||||||
const template = resolve(base, 'template');
|
const template = resolve(base, 'template');
|
||||||
|
|
||||||
|
const serve = `在 2.B 样板中,不再使用先前的启动服务,而使用一个单独的软件。
|
||||||
|
你可以加造塔群 959329661 后,在群文件 - 启动服务 中获取,文件夹中会有一个专门的安装教程。`;
|
||||||
|
|
||||||
async function packTemplate() {
|
async function packTemplate() {
|
||||||
await ensureDir(template);
|
await ensureDir(template);
|
||||||
await emptyDir(template);
|
await emptyDir(template);
|
||||||
@ -41,6 +45,8 @@ async function packTemplate() {
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
await writeFile(resolve(template, '启动服务呢?.txt'), serve, 'utf-8');
|
||||||
|
|
||||||
console.log(`样板打包完成`);
|
console.log(`样板打包完成`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user