feat: add multi-engine regex flavour support
This commit is contained in:
16
scripts/install-ruby-engine.mjs
Normal file
16
scripts/install-ruby-engine.mjs
Normal file
@@ -0,0 +1,16 @@
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { installRubyPack } from "./ruby-engine-pack.mjs";
|
||||
|
||||
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
||||
const arguments_ = process.argv.slice(2);
|
||||
if (arguments_.length > 1) {
|
||||
throw new Error(
|
||||
"Usage: node scripts/install-ruby-engine.mjs [.engine-build/ruby]",
|
||||
);
|
||||
}
|
||||
const source = path.resolve(root, arguments_[0] ?? ".engine-build/ruby");
|
||||
const result = await installRubyPack(source, root);
|
||||
console.log(
|
||||
`Installed verified ${result.metadata.engineVersion} assets at ${result.output}.`,
|
||||
);
|
||||
Reference in New Issue
Block a user