authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-10-25 15:05:30-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-10-27 01:42:01-07:00
logdddd86a716404f0e1b473b740a28c2718020aca2
tree3bb721b76b8dc1d52c859e5fcc25694b9102fb1c
parent3ac883edb26983722d9845853f016f2976d19e1b
signature Commit is signed but in an unrecognized format.

fix(sitegen): fix running on windows 7


2 files changed, 1 insertions(+), 2 deletions(-)

framework/font.ts+1-1
...@@ -4,7 +4,7 @@ export async function buildFonts(p: progress.Ref, fonts: sg.Font[]) {...@@ -4,7 +4,7 @@ export async function buildFonts(p: progress.Ref, fonts: sg.Font[]) {
44
5 const temp = path.resolve(".clover/font");5 const temp = path.resolve(".clover/font");
6 const venv = path.join(temp, "venv");6 const venv = path.join(temp, "venv");
7 const bin = path.join(venv, "bin");7 const bin = path.join(venv, process.platform === "win32" ? "Scripts" : "bin");
88
9 if (!fs.existsSync(venv)) {9 if (!fs.existsSync(venv)) {
10 using _ = node.start("setup python env");10 using _ = node.start("setup python env");
framework/hot.ts-1
...@@ -174,7 +174,6 @@ function loadMarko(module: NodeJS.Module, filepath: string) {...@@ -174,7 +174,6 @@ function loadMarko(module: NodeJS.Module, filepath: string) {
174174
175function loadMdx(module: NodeJS.Module, filepath: string) {175function loadMdx(module: NodeJS.Module, filepath: string) {
176 const input = fs.readFileSync(filepath);176 const input = fs.readFileSync(filepath);
177 console.log(filepath);
178 const out = mdx.compileSync(input, {177 const out = mdx.compileSync(input, {
179 jsxImportSource: "#jsx",178 jsxImportSource: "#jsx",
180 providerImportSource: "#mdx",179 providerImportSource: "#mdx",