How to use the electron-builder.Platform.current function in electron-builder

To help you get started, we’ve selected a few electron-builder 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 eez-open / studio / installation / build-installation-new.ts View on Github external
];

    // if (Platform.current() === Platform.WINDOWS) {
    //     files = files.concat([
    //         "!**/node_modules/better-sqlite3/build/Release",
    //         "!**/node_modules/usb/build/Release",
    //         "!**/node_modules/@serial-port/bindings/build/Release",
    //         "!**/node_modules/lzz-gyp/lzz-compiled/linux",
    //         "!**/node_modules/lzz-gyp/lzz-compiled/osx",
    //         "!**/node_modules/lzz-gyp/lzz-compiled/bsd"
    //     ]);
    // }

    // Promise is returned
    build({
        targets: Platform.current().createTarget(),

        config: {
            appId: "hr.envox.eez.studio",
            copyright: "Copyright © 2018-present Envox d.o.o.",
            productName,

            directories: {
                output: "builder-output"
            },

            nodeGypRebuild: false,
            npmRebuild: false,

            files,

            extraResources: await getExtraResource(),
github KoltesDigital / shadertoy-exporter / scripts / build.js View on Github external
.then(() => {
	console.log('Building Electron app');
	return build({
		config: buildOptions,
		targets: Platform.current().createTarget(),
		publish: "never",
	});
});