Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

638 B
Raw Blame
// Used by start.bat: exits 0 when the production build is missing or older than the source, 1 when it is current.
import fs from "node:fs";
import path from "node:path";

let built;
try {
  built = fs.statSync(".next/BUILD_ID").mtimeMs;
} catch {
  process.exit(0);
}

const roots = ["src", "public", "skills", "package.json", "pnpm-lock.yaml", "next.config.ts", "tsconfig.json"];
function newer(p) {
  let st;
  try {
    st = fs.statSync(p);
  } catch {
    return false;
  }
  if (!st.isDirectory()) return st.mtimeMs > built;
  return fs.readdirSync(p).some((f) => newer(path.join(p, f)));
}
process.exit(roots.some(newer) ? 0 : 1);