From 8b6dc81ee12fae9eb5028e31bb14e62259eba090 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 14 Oct 2025 19:00:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=90=AF=E5=8A=A8=E6=9C=8D=E5=8A=A1=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/pack-template.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/script/pack-template.ts b/script/pack-template.ts index 4c2f0aa..78c76b7 100644 --- a/script/pack-template.ts +++ b/script/pack-template.ts @@ -1,10 +1,14 @@ /* eslint-disable no-console */ import { copy, emptyDir, ensureDir } from 'fs-extra'; +import { writeFile } from 'fs/promises'; import { resolve } from 'path'; const base = resolve(process.cwd()); const template = resolve(base, 'template'); +const serve = `在 2.B 样板中,不再使用先前的启动服务,而使用一个单独的软件。 +你可以加造塔群 959329661 后,在群文件 - 启动服务 中获取,文件夹中会有一个专门的安装教程。`; + async function packTemplate() { await ensureDir(template); await emptyDir(template); @@ -41,6 +45,8 @@ async function packTemplate() { ) ); + await writeFile(resolve(template, '启动服务呢?.txt'), serve, 'utf-8'); + console.log(`样板打包完成`); }