feat: 完善字体包发行与 Docker 内置字体
This commit is contained in:
@@ -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`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user