Programmatic Usage

Electron-builder also provides a programmatic API to deal with your application packaging. The configuration should be passed to the build function as follows in your build script:

"use strict"

const builder = require("electron-builder")
const Platform = builder.Platform

// Promise is returned
builder.build({
targets: Platform.MAC.createTarget(),
config: {
"//": "build options, see https://goo.gl/ZhRfla"
}
})
.then(() => {
// handle result
})
.catch((error) => {
// handle error
})
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.137.198.183