Monorepo for Aesthetic.Computer aesthetic.computer
at main 21 lines 622 B view raw
1#!/usr/bin/env node 2/** 3 * Trigger Electron app reboot from within the devcontainer 4 * 5 * This script creates a marker file that the Electron app monitors. 6 * When detected, the app will relaunch itself. 7 */ 8 9const fs = require('fs'); 10const path = require('path'); 11 12const REBOOT_MARKER = path.join(__dirname, '.reboot-requested'); 13 14console.log('Requesting Electron app reboot...'); 15console.log('Creating marker file:', REBOOT_MARKER); 16 17// Create the marker file 18fs.writeFileSync(REBOOT_MARKER, new Date().toISOString()); 19 20console.log('✓ Reboot request sent'); 21console.log('The Electron app should restart shortly...');