Serve installers from website domain
This commit is contained in:
11
scripts/sync-website-installers.mjs
Normal file
11
scripts/sync-website-installers.mjs
Normal file
@@ -0,0 +1,11 @@
|
||||
import { cpSync, mkdirSync } from "node:fs";
|
||||
import { resolve } from "node:path";
|
||||
|
||||
const appRoot = resolve(import.meta.dirname, "..");
|
||||
const websitePublicDir = resolve(appRoot, "website", "public");
|
||||
|
||||
mkdirSync(websitePublicDir, { recursive: true });
|
||||
cpSync(resolve(appRoot, "scripts", "install", "install.sh"), resolve(websitePublicDir, "install"));
|
||||
cpSync(resolve(appRoot, "scripts", "install", "install.ps1"), resolve(websitePublicDir, "install.ps1"));
|
||||
|
||||
console.log("[feynman] synced website installers");
|
||||
Reference in New Issue
Block a user