This commit is contained in:
Philip Peterson 2025-08-21 20:52:50 -07:00 committed by Philip Peterson
parent 35bbd351b5
commit 285b6e674c

6
bin/mk-snapshot.js vendored
View file

@ -41,8 +41,10 @@ async function main() {
const outputBlobPath = `${baseDirPath}/cache/${npmConfigArch}`;
await mkdirp(outputBlobPath);
const baseDir = require.resolve("electron-mksnapshot");
const mksnapshotBinPath = path.resolve(baseDir, "bin", "mksnapshot" + (process.platform === "win32" ? ".exe" : ""));
const mksnapshotBinPath =
require.resolve(
path.join("electron-mksnapshot", "bin", "mksnapshot" + (process.platform === "win32" ? ".exe" : ""))
);
if (process.platform !== 'darwin') {
// TODO non-darwin