build.js
function afterBuild() {
	var targetPath = path.join(__dirname, 'build', debug ? 'Debug' : 'Release', 'fibers.node');
	var installPath = path.join(__dirname, 'bin', modPath, 'fibers.node');

	try {
		fs.mkdirSync(path.join(__dirname, 'bin', modPath));
	} catch (ex) {}

	try {
		fs.statSync(targetPath);
	} catch (ex) {
		console.error('Build succeeded but target not found');
		process.exit(1);
	}
	fs.renameSync(targetPath, installPath);
	console.log('Installed in `'+ installPath+ '`');
	if (process.versions.electron) {
		process.nextTick(function() {
			require('electron').app.quit();
		});
	}
}
function afterBuild() {
	var targetPath = path.join(__dirname, 'build', debug ? 'Debug' : 'Release', 'fibers.node');
	var installPath = path.join(__dirname, 'bin', modPath, 'fibers.node');

	try {
		fs.mkdirSync(path.join(__dirname, 'bin', modPath));
	} catch (ex) {}

	try {
		fs.statSync(targetPath);
	} catch (ex) {
		console.error('Build succeeded but target not found');
		process.exit(1);
	}
	fs.renameSync(targetPath, installPath);
	console.log('Installed in `'+ installPath+ '`');
	if (process.versions.electron) {
		process.nextTick(function() {
			require('electron').app.quit();
		});
	}
}
function afterBuild ( ) { var targetPath = path . join ( __dirname , 'build' , debug ? 'Debug' : 'Release' , 'fibers.node' ) ; var installPath = path . join ( __dirname , 'bin' , modPath , 'fibers.node' ) ; try { fs . mkdirSync ( path . join ( __dirname , 'bin' , modPath ) ) ; } catch ( ex ) { } try { fs . statSync ( targetPath ) ; } catch ( ex ) { console . error ( 'Build succeeded but target not found' ) ; process . exit ( 1 ) ; } fs . renameSync ( targetPath , installPath ) ; console . log ( 'Installed in `' + installPath + '`' ) ; if ( process . versions . electron ) { process . nextTick ( function ( ) { require ( 'electron' ) . app . quit ( ) ; } ) ; } }
Move it to expected location
Move it to expected location