Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
];
// 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(),
.then(() => {
console.log('Building Electron app');
return build({
config: buildOptions,
targets: Platform.current().createTarget(),
publish: "never",
});
});