Any tutorial to build windows-Exe from Redhat-Linux platform


#1

Hi,

I am using electron-builder to build my application.
I am trying to build exe from Redhat linux
I installed wine, i can see wine 2.0 when i check

wine64 --version

unfortunately I am getting following error.If there is any way to fix that please let me know.
Is there any way to fix this issue.

Error: Cannot check wine version: Error: Exit code: ENOENT. spawn wine ENOENT
at /workplace/jk/mypackage/src/test/node_modules/builder-util/src/wine.ts:67:13
at Generator.throw ()
From previous event:
at checkWineVersion (/workplace/jk/mypackage/src/test/node_modules/builder-util/out/wine.js:50:22)
at Lazy. (/workplace/jk/mypackage/src/test/node_modules/builder-util/src/wine.ts:29:9)
From previous event:
at Lazy.get value [as value] (/workplace/jk/mypackage/src/test/node_modules/lazy-val/src/main.ts:18:23)
at execWine (/workplace/jk/mypackage/src/test/node_modules/builder-util/src/wine.ts:39:27)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/winPackager.ts:320:11
From previous event:
at WinPackager.signAndEditResources (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/winPackager.js:427:11)
at WinPackager.signApp (/workplace/jk/mypackage/src/test/node_modules/electron-builder/src/winPackager.ts:336:17)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/platformPackager.ts:199:16
at Generator.next ()
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
From previous event:
at WinPackager.doPack (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/platformPackager.js:251:11)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/platformPackager.ts:105:16
at Generator.next ()
From previous event:
at WinPackager.pack (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/platformPackager.js:174:11)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/packager.ts:260:24
From previous event:
at Packager.doBuild (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/packager.js:338:11)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/packager.ts:186:52
at Generator.next ()
From previous event:
at Packager.build (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/packager.js:257:11)
at /workplace/jk/mypackage/src/test/node_modules/electron-builder/src/builder.ts:286:40
at Generator.next ()
From previous event:
at build (/workplace/jk/mypackage/src/test/node_modules/electron-builder/out/builder.js:69:21)
at loadEnv.then (/workplace/jk/mypackage/src/test/node_modules/electron-builder/src/cli/cli.ts:49:4)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
From previous event:
at Object.args [as handler] (/workplace/jk/mypackage/src/test/node_modules/electron-builder/src/cli/cli.ts:49:4)
at Object.self.runCommand (/workplace/jk/mypackage/src/test/node_modules/yargs/lib/command.js:233:22)
at Object.Yargs.self._parseArgs (/workplace/jk/mypackage/src/test/node_modules/yargs/yargs.js:1018:24)
at Object.get [as argv] (/workplace/jk/mypackage/src/test/node_modules/yargs/yargs.js:927:19)
at Object. (/workplace/jk/mypackage/src/test/node_modules/electron-builder/src/cli/cli.ts:43:15)
at Module._compile (module.js:635:30)
at Object.Module._extensions…js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

I tried to read electron builder multi platform build but cant understand that clearly