feat: 完善字体包发行与 Docker 内置字体

This commit is contained in:
SkyJourney
2026-08-02 11:33:27 +08:00
parent 3a8d2c1c2e
commit 14f470454c
19 changed files with 434 additions and 252 deletions
+11 -2
View File
@@ -10,7 +10,8 @@ const desktopManifest = JSON.parse(
await readFile(join(desktopRoot, "package.json"), "utf8")
);
const fontInstallerName =
"md-to-pdf-font-pack-mdtp-serif-sc-1.0.0-x86_64-Setup.exe";
"MorphDoc-FontPack-mdtp-serif-sc-1.0.0-x86_64-Setup.exe";
const fontArchiveName = "MorphDoc-FontPack-mdtp-serif-sc-1.0.0.zip";
const fontInstallerPath = join(
repositoryRoot,
"output",
@@ -24,6 +25,13 @@ const generatedInclude = join(
"font-packs",
"desktop-companion.nsh"
);
const fontArchivePath = join(
repositoryRoot,
"output",
"font-packs",
"release",
fontArchiveName
);
await createDesktopCompanionInclude({
installerPath: fontInstallerPath,
@@ -66,6 +74,7 @@ await new Promise((resolvePromise, reject) => {
const desktopOutput = join(desktopRoot, "out", `v${desktopManifest.version}`);
await mkdir(desktopOutput, { recursive: true });
await copyFile(fontInstallerPath, join(desktopOutput, fontInstallerName));
await copyFile(fontArchivePath, join(desktopOutput, fontArchiveName));
process.stdout.write(
`主安装器字体包伴随安装器已生成:${desktopOutput}\n`
`主安装器字体包伴随安装器与 ZIP 附件已生成:${desktopOutput}\n`
);