From 1f93ee378d3117e0f06b6472e95f1aa529b5bd2d Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Thu, 17 Sep 2026 19:33:15 -0700 Subject: [PATCH] Guard development shell replacement before touching dependencies --- easel/dev/install.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/easel/dev/install.mjs b/easel/dev/install.mjs index 825870dacc..a1495fef66 100644 --- a/easel/dev/install.mjs +++ b/easel/dev/install.mjs @@ -14,6 +14,7 @@ const deps=option('--dependencies',path.join(source,'desktop/node_modules')); const app=path.join(os.homedir(),'Applications/Aesel Dev.app'); const pkg=JSON.parse(fs.readFileSync(path.join(source,'desktop/package.json'))); if(process.platform!=='darwin')throw Error('The fleet dev installer currently supports macOS.'); +if(fs.existsSync(app)&&execFileSync('/bin/ps',['-axo','command='],{encoding:'utf8'}).split('\n').some(line=>line.startsWith(path.join(app,'Contents/MacOS')+'/')))throw Error('Quit Aesel Dev before updating its Electron shell or dependencies.'); if(!fs.existsSync(base)||!fs.existsSync(deps))throw Error('Provide an installed Electron app and its extracted production node_modules.'); fs.mkdirSync(home,{recursive:true});fs.mkdirSync(path.join(home,'dependencies'),{recursive:true}); // Copy production Electron dependencies, including the matching node-pty binary. -- 2.51.2