mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
23 lines
691 B
JavaScript
23 lines
691 B
JavaScript
const { execSync } = require("child_process");
|
|
const pkg = require("../package.json");
|
|
const path = require("path");
|
|
const pnp = require("pnpapi");
|
|
const shellescape = require('shell-escape');
|
|
|
|
|
|
const version = pkg.devDependencies.electron;
|
|
if (!version) {
|
|
console.error("Electron not found in devDependencies.");
|
|
process.exit(1);
|
|
}
|
|
|
|
process.env.ELECTRON_CUSTOM_VERSION = version;
|
|
|
|
|
|
const downloadScript = pnp.resolveToUnqualified("electron-mksnapshot/download-mksnapshot.js", __filename);
|
|
const mkSnapshotScript = path.resolve(__dirname, "../bin/mk-snapshot.js");
|
|
|
|
execSync(`node ${downloadScript}`, {
|
|
stdio: "inherit",
|
|
});
|
|
execSync(`node ${mkSnapshotScript}`, { stdio: "inherit" });
|