Step run software and compile for windows10 Maybe you need edit some option or function.. Step compile for windows10 1. download last version from GitHub and extract to you drive 2 open windows terminal in folder and use command Code: npm install --global yarn yarn yarn electron-builder 3 see exe file in folder Step for run dev mode edit some function and test Code: yarn electron-rebuild yarn electron . done..
We don't use npm start script. You can try running electron builder directly Code: ./bin/electron/electron-builder . We don't really build locally though, we use OpenBuilds-CONTROL/build.yml at master · OpenBuilds/OpenBuilds-CONTROL with Github Actions You can download precompiled builds from OpenBuilds Software - FREE Software for CNC Control: OpenBuilds CONTROL and OpenBuilds CAM
can't run is not a valid Win32 application. or Error: Module did not self-register: Code: D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332>yarn electron . yarn run v1.22.19 $ D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\.bin\electron . App threw an error during load Error: Module did not self-register: '\\?\D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\drivelist\build\Release\drivelist.node'. at process.func [as dlopen] (electron/js2c/asar.js:140:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034:18) at Object.func [as .node] (electron/js2c/asar.js:140:31) at Module.load (internal/modules/cjs/loader.js:815:32) at Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (internal/modules/cjs/loader.js:852:19) at require (internal/modules/cjs/helpers.js:74:18) at bindings (D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\bindings\bindings.js:112:48) at Object.<anonymous> (D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\drivelist\js\index.js:25:27) Error: Module did not self-register: '\\?\D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\drivelist\build\Release\drivelist.node'. at process.func [as dlopen] (electron/js2c/asar.js:140:31) at Object.Module._extensions..node (internal/modules/cjs/loader.js:1034:18) at Object.func [as .node] (electron/js2c/asar.js:140:31) at Module.load (internal/modules/cjs/loader.js:815:32) at Module._load (internal/modules/cjs/loader.js:727:14) at Function.Module._load (electron/js2c/asar.js:769:28) at Module.require (internal/modules/cjs/loader.js:852:19) at require (internal/modules/cjs/helpers.js:74:18) at bindings (D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\bindings\bindings.js:112:48) at Object.<anonymous> (D:\Witawat_data\CNC\OpenBuilds-CONTROL-1.0.332\node_modules\drivelist\js\index.js:25:27) Terminate batch job (Y/N)? Y
Precompiled versions are available on Https://software.penbuilds.com - ready to run Your error shows you have not run electron-rebuild to rebuild dependencies like node-serialport and drivelist for electron. You'd have to spend a little time working through the electron documentation, we use the standard electron stack. Rebuilding of native modules: see Native Node Modules | Electron