Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save arnaudambro/1e026d23f55f5851b0c28a7d0a285c7f to your computer and use it in GitHub Desktop.
Save arnaudambro/1e026d23f55f5851b0c28a7d0a285c7f to your computer and use it in GitHub Desktop.
macOS Catalina doesn't support 32-bit executables and as result Wine cannot run Windows 32-bit applications too
yarn package-all
yarn run v1.21.1
$ yarn build && electron-builder build -mwl
$ concurrently "yarn build-main" "yarn build-renderer"
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.main.prod.babel.js --colors
$ cross-env NODE_ENV=production webpack --config ./configs/webpack.config.renderer.prod.babel.js --colors
[0] Hash: 14f890f1e10c18274383
[0] Version: webpack 4.41.2
[0] Time: 3824ms
[0] Built at: 01/16/2020 4:43:50 PM
[0] Asset Size Chunks Chunk Names
[0] ./app/main.prod.js 531 KiB 0 [emitted] main
[0] ./app/main.prod.js.LICENSE 55 bytes [emitted]
[0] ./app/main.prod.js.map 689 KiB 0 [emitted] [dev] main
[0] Entrypoint main = ./app/main.prod.js ./app/main.prod.js.map
[0] [./app/main.dev.js] ./app/main.dev.js + 1 modules 8.94 KiB {0} [built]
[0] | ./app/main.dev.js 2.79 KiB [built]
[0] | ./app/menu.js 6.14 KiB [built]
[0] [./node_modules/electron-debug sync recursive] ./node_modules/electron-debug sync 160 bytes {0} [built]
[0] [assert] external "assert" 42 bytes {0} [built]
[0] [child_process] external "child_process" 42 bytes {0} [built]
[0] [crypto] external "crypto" 42 bytes {0} [built]
[0] [electron] external "electron" 42 bytes {0} [built]
[0] [events] external "events" 42 bytes {0} [built]
[0] [fs] external "fs" 42 bytes {0} [built]
[0] [http] external "http" 42 bytes {0} [built]
[0] [https] external "https" 42 bytes {0} [built]
[0] [module] external "module" 42 bytes {0} [optional] [built]
[0] [os] external "os" 42 bytes {0} [built]
[0] [path] external "path" 42 bytes {0} [built]
[0] [url] external "url" 42 bytes {0} [built]
[0] [util] external "util" 42 bytes {0} [built]
[0] + 191 hidden modules
[0]
[0] WARNING in ./node_modules/electron-debug/index.js 96:45-58
[0] Critical dependency: the request of a dependency is an expression
[0] @ ./app/main.dev.js
[0]
[0] WARNING in ./node_modules/electron-debug/index.js 97:61-74
[0] Critical dependency: the request of a dependency is an expression
[0] @ ./app/main.dev.js
[0] yarn build-main exited with code 0
[1] Hash: 2393070d9263167ddbad
[1] Version: webpack 4.41.2
[1] Time: 8157ms
[1] Built at: 01/16/2020 4:43:54 PM
[1] Asset Size Chunks Chunk Names
[1] 088a34f78f530102fd9661173b4a4f26.eot 129 KiB [emitted]
[1] 273dc9bf9778fd37fa61357645d46a28.ttf 129 KiB [emitted]
[1] 2aa6edf8f296a43b32df35f330b7c81c.ttf 189 KiB [emitted]
[1] 3ac49cb33f43a6471f21ab3df40d1b1e.eot 33.6 KiB [emitted]
[1] 7a5de9b08012e4da40504f2cf126a351.svg 829 KiB [emitted]
[1] 7fb1cdd9c3b889161216a13267b55fe2.eot 190 KiB [emitted]
[1] 822d94f19fe57477865209e1242a3c63.woff2 74.2 KiB [emitted]
[1] 93f284548b42ab76fe3fd03a9d3a2180.woff 96.7 KiB [emitted]
[1] 9efb86976bd53e159166c12365f61e25.woff2 13.3 KiB [emitted]
[1] a57bcf76c178aee452db7a57b75509b6.woff 16.4 KiB [emitted]
[1] d2e53334c22a9a4937bc26e84b36e1e0.svg 141 KiB [emitted]
[1] d72293118cda50ec50c39957d9d836d0.svg 692 KiB [emitted]
[1] ece54318791c51b52dfdc689efdb6271.ttf 33.3 KiB [emitted]
[1] f4920c94c0861c537f72ba36590f6362.woff 87 KiB [emitted]
[1] f6121be597a72928f54e7ab5b95512a1.woff2 74.3 KiB [emitted]
[1] renderer.prod.js 696 KiB 0 [emitted] main
[1] renderer.prod.js.LICENSE 2.26 KiB [emitted]
[1] renderer.prod.js.map 2.31 MiB 0 [emitted] [dev] main
[1] style.css 56.3 KiB 0 [emitted] main
[1] style.css.map 183 KiB [emitted]
[1] Entrypoint main = style.css renderer.prod.js renderer.prod.js.map
[1] [./app/app.global.css] 39 bytes {0} [built]
[1] [./app/index.js] ./app/index.js + 152 modules 628 KiB {0} [built]
[1] | ./app/index.js 1.43 KiB [built]
[1] | ./app/webbot/index.js 2.03 KiB [built]
[1] | ./app/webbot/App.js 3.04 KiB [built]
[1] | ./app/webbot/redux/store.js 834 bytes [built]
[1] | ./app/webbot/helpers/makeSelectorInstance.js 180 bytes [built]
[1] | ./app/webbot/redux/ducks/sharedSelectors.js 2.47 KiB [built]
[1] | ./app/webbot/redux/ducks/sharedActionCreators.js 433 bytes [built]
[1] | ./app/webbot/redux/ducks/botState.js 5.19 KiB [built]
[1] | ./app/webbot/redux/ducks/messages.js 15 KiB [built]
[1] | ./app/webbot/helpers/insertDOMElements.js 802 bytes [built]
[1] | ./app/webbot/redux/ducks/config.js 15.3 KiB [built]
[1] | ./app/webbot/redux/ducks/botCustom.js 1.84 KiB [built]
[1] | ./app/webbot/styles/theme.js 2.77 KiB [built]
[1] | ./app/webbot/styles/global.js 345 bytes [built]
[1] | ./app/webbot/reference/carouselCSS.js 3.38 KiB [built]
[1] | + 138 hidden modules
[1] [./app/webbot/reference/DOMNodesIds.js] 2.91 KiB {0} [built]
[1] [./app/webbot/reference/botSDK.js] 3.31 KiB {0} [built]
[1] [./node_modules/webpack/buildin/harmony-module.js] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
[1] + 187 hidden modules
[1] Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--5-1!app/app.global.css:
[1] Entrypoint mini-css-extract-plugin = *
[1] [./node_modules/css-loader/dist/cjs.js?!./app/app.global.css] ./node_modules/css-loader/dist/cjs.js??ref--5-1!./app/app.global.css 1.84 KiB {0} [built]
[1] + 18 hidden modules
[1] yarn build-renderer exited with code 0
• electron-builder version=22.2.0 os=19.2.0
• loaded configuration file=package.json ("build" field)
• writing effective config file=release/builder-effective-config.yaml
• packaging platform=darwin arch=x64 electron=7.1.4 appOutDir=release/mac
• signing file=release/mac/ElectronReact.app identityName= identityHash= provisioningProfile=none
• building target=macOS zip arch=x64 file=release/ElectronReact-0.18.1-mac.zip
• building target=DMG arch=x64 file=release/ElectronReact-0.18.1.dmg
• packaging platform=linux arch=x64 electron=7.1.4 appOutDir=release/linux-unpacked
• building target=AppImage arch=x64 file=release/ElectronReact-0.18.1.AppImage
• packaging platform=win32 arch=x64 electron=7.1.4 appOutDir=release/win-unpacked
• building target=deb arch=x64 file=release/electron-react-boilerplate_0.18.1_amd64.deb
• building target=MSI arch=x64 file=release/ElectronReact 0.18.1.msi
• building target=nsis file=release/ElectronReact Setup 0.18.1.exe archs=x64 oneClick=true perMachine=false
⨯ macOS Catalina doesn't support 32-bit executables and as result Wine cannot run Windows 32-bit applications too
• building block map blockMapFile=release/ElectronReact-0.18.1.dmg.blockmap
• building block map blockMapFile=release/ElectronReact Setup 0.18.1.exe.blockmap
• building embedded block map file=release/ElectronReact-0.18.1-mac.zip
• building target=rpm arch=x64 file=release/electron-react-boilerplate-0.18.1.x86_64.rpm
⨯ /myfolder/node_modules/app-builder-lib/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE stackTrace=
Error: /Volumes/Pro/2020-01-028_TCF_Webbot-Electronjs/webbot-electron/node_modules/app-builder-lib/node_modules/app-builder-bin/mac/app-builder exited with code ERR_ELECTRON_BUILDER_CANNOT_EXECUTE
at ChildProcess.childProcess.once.code (/Volumes/Pro/2020-01-028_TCF_Webbot-Electronjs/webbot-electron/node_modules/app-builder-lib/node_modules/builder-util/src/util.ts:239:14)
at Object.onceWrapper (events.js:286:20)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment