How to use the electron-installer-common.createTemplatedFile function in electron-installer-common

To help you get started, we’ve selected a few electron-installer-common 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-installer-redhat / src / installer.js View on Github external
createMacros () {
    const src = path.resolve(__dirname, '../resources/macros.ejs')
    const dest = path.join(process.env.HOME, '.rpmmacros')
    this.options.logger(`Creating macros file at ${dest}`)

    return common.wrapError('creating macros file', async () => common.createTemplatedFile(src, dest, { dir: this.stagingDir, ...this.options }))
  }