src/build/buildMain.js
function getAppPath(appPathArray) {
  if (appPathArray.length === 0) {
    // directory already exists, --overwrite is not set
    // exit here
    return null;
  }

  if (appPathArray.length > 1) {
    log.warn(
      'Warning: This should not be happening, packaged app path contains more than one element:',
      appPathArray,
    );
  }

  return appPathArray[0];
}
function getAppPath(appPathArray) {
  if (appPathArray.length === 0) {
    // directory already exists, --overwrite is not set
    // exit here
    return null;
  }

  if (appPathArray.length > 1) {
    log.warn(
      'Warning: This should not be happening, packaged app path contains more than one element:',
      appPathArray,
    );
  }

  return appPathArray[0];
}
function getAppPath ( appPathArray ) { if ( appPathArray . length === 0 ) { // directory already exists, --overwrite is not set // exit here return null ; } if ( appPathArray . length > 1 ) { log . warn ( 'Warning: This should not be happening, packaged app path contains more than one element:' , appPathArray , ) ; } return appPathArray [ 0 ] ; }
Checks the app path array to determine if the packaging was completed successfully
@param appPathArray Result from electron-packager
@returns {*}
Checks the app path array to determine if the packaging was completed successfully