Skip to content

Commit

Permalink
Merge branch 'dev' into prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Mar 11, 2024
2 parents 277059a + c908549 commit 69c6847
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions verdafile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,9 @@ const TtfArchive = file.make(
async (t, out, infix) => {
const [config] = await t.need(Config, TtfFontFiles(infix));
await rm(out.full);
for (let j = 0; j < config.styleOrder.length; j += 2) {
const styleUpright = config.styleOrder[j];
const styleItalic = config.styleOrder[j + 1];
await SevenZipCompress(
`${OUT}/${infix}`,
out.full,
styleUpright ? `*-${styleUpright}.ttf` : null,
styleItalic ? `*-${styleItalic}.ttf` : null
);
for (let j = 0; j < config.styleOrder.length; j += 1) {
const style = config.styleOrder[j];
await SevenZipCompress(`${OUT}/${infix}`, out.full, `*-${style}.ttf`);
}
}
);
Expand All @@ -145,7 +139,7 @@ const StandaloneTtfArchive = file.make(
function SevenZipCompress(dir, target, ...inputs) {
return cd(dir).run(
[SEVEN_ZIP, `a`],
[`-t7z`, `-mmt=on`, `-m0=LZMA:a=0:d=256m:fb=256`],
[`-t7z`, `-mmt=on`, `-mx=9`],
[path.relative(dir, target), ...inputs]
);
}
Expand Down

0 comments on commit 69c6847

Please sign in to comment.