How to use the electron-builder-util/out/log.log function in electron-builder-util

To help you get started, we’ve selected a few electron-builder-util examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github electron-userland / electron-builder / packages / electron-builder / src / cli / node-gyp-rebuild.ts View on Github external
async function main() {
  const projectDir = process.cwd()
  const config = await loadConfig(projectDir)
  log(`Execute node-gyp rebuild for ${args.platform}:${args.arch}`)
  // this script must be used only for electron
  await exec(process.platform === "win32" ? "node-gyp.cmd" : "node-gyp", ["rebuild"], {
    env: getGypEnv({version: await getElectronVersion(config, projectDir), useCustomDist: true}, args.platform, args.arch, true),
  })
}

electron-builder-util

Part of [electron-builder](https://github.com/electron-userland/electron-builder).

MIT
Latest version published 7 years ago

Package Health Score

66 / 100
Full package analysis

Similar packages