stickoking / razer-macos

Color effects manager for Razer devices for macOS. Supports High Sierra (10.13) to Sonoma (14.3). Made by the community, based on openrazer.
GNU General Public License v2.0
67 stars 11 forks source link

Build fails #47

Open ahtonen opened 1 month ago

ahtonen commented 1 month ago

Thanks for the great project! I tried to build it in Sonoma 14.6.1, according the instructions, but encountered a file not found error, see the log. Maybe I'm missing some (undocumented?) step? In fact, the whole build directory is not there, I checked after getting the error.

yarn dist 
yarn run v1.22.22
warning ../../package.json: No license field
$ yarn compile && electron-builder
warning ../../package.json: No license field
$ electron-webpack
Hash: 0ac73d69a4c4b8bdaaa3d09250e0fcd6d86213a6
Version: webpack 4.47.0
Child
    Hash: 0ac73d69a4c4b8bdaaa3
    Time: 841ms
    Built at: 10/22/2024 4:17:15 PM
     2 assets
    Entrypoint main = main.js main.js.map
      [0] external "electron" 42 bytes {0} [built]
      [1] external "path" 42 bytes {0} [built]
      [3] multi ./src/main/index.js 28 bytes {0} [built]
      [4] ./src/main/index.js 159 bytes {0} [built]
      [6] ./src/devices sync \.json$/ 4.24 KiB {0} [built]
      [7] ./src/devices/abyssus.json 237 bytes {0} [optional] [built]
      [8] ./src/devices/abyssus_1800.json 322 bytes {0} [optional] [built]
      [9] ./src/devices/abyssus_2000.json 322 bytes {0} [optional] [built]
     [10] ./src/devices/abyssus_elite_dva_edition.json 504 bytes {0} [optional] [built]
     [11] ./src/devices/abyssus_essential.json 499 bytes {0} [optional] [built]
     [12] ./src/devices/abyssus_v2.json 630 bytes {0} [optional] [built]
     [13] ./src/devices/anansi.json 227 bytes {0} [optional] [built]
    [158] external "electron-json-storage" 42 bytes {0} [built]
    [159] ./package.json 2.43 KiB {0} [built]
    [160] ./src/main/application.js + 41 modules 81.1 KiB {0} [built]
          | ./src/main/application.js 11.1 KiB [built]
          | ./src/main/razerapplication.js 1.63 KiB [built]
          | ./src/main/menu/menubuilder.js 4.79 KiB [built]
          | ./src/main/razerdevicemanager.js 6.38 KiB [built]
          | ./src/main/settingsmanager.js 1.11 KiB [built]
          | ./src/main/animation/animationcyclespectrum.js 840 bytes [built]
          | ./src/main/animation/animationcyclecustom.js 1.12 KiB [built]
          | ./src/main/statemanager.js 6.59 KiB [built]
          | ./src/main/menu/menubuilderdevice.js 12.3 KiB [built]
          | ./src/driver/index.js 90 bytes [built]
          | ./src/main/device/razerdevice.js 2.48 KiB [built]
          | ./src/main/device/razerdevicekeyboard.js 3.62 KiB [built]
          | ./src/main/feature/featureidentifier.js 711 bytes [built]
          | ./src/main/device/razerdevicemouse.js 6.5 KiB [built]
          | ./src/main/device/razerdevicemousedock.js 885 bytes [built]
          |     + 27 hidden modules
        + 146 hidden modules

    ERROR in ./src/driver/index.js
    Module not found: Error: Can't resolve '../../build/Release/addon.node' in '/Users/pekka/src/razer-macos/src/driver'
     @ ./src/driver/index.js 4:15-56
     @ ./src/main/razerdevicemanager.js
     @ ./src/main/razerapplication.js
     @ ./src/main/application.js
     @ ./src/main/index.js
     @ multi ./src/main/index.js
Child
    Hash: d09250e0fcd6d86213a6
    Time: 1220ms
    Built at: 10/22/2024 4:17:15 PM
                      Asset       Size  Chunks                   Chunk Names
                 index.html  279 bytes          [emitted]        
                renderer.js    299 KiB       0  [emitted]        renderer
    renderer.js.LICENSE.txt  790 bytes          [emitted]        
            renderer.js.map    332 KiB       0  [emitted] [dev]  renderer
                 styles.css   6.23 KiB       0  [emitted]        renderer
             styles.css.map    1.8 KiB       0  [emitted] [dev]  renderer
    Entrypoint renderer = styles.css renderer.js styles.css.map renderer.js.map
     [1] external "electron" 42 bytes {0} [built]
     [2] external "react-tabs" 42 bytes {0} [built]
     [3] external "react-select" 42 bytes {0} [built]
     [6] external "react-color" 42 bytes {0} [built]
     [7] external "react-slider" 42 bytes {0} [built]
    [10] multi ./src/renderer/index.jsx 28 bytes {0} [built]
    [15] ./src/renderer/react-tabs.css 39 bytes {0} [built]
    [31] ./src/renderer/index.css 39 bytes {0} [built]
    [32] ./src/renderer/index.jsx + 62 modules 333 KiB {0} [built]
         | ./src/renderer/index.jsx 237 bytes [built]
         | ./src/renderer/App.jsx 4.75 KiB [built]
         | ./src/renderer/views/viewdevicesettings.jsx 5.21 KiB [built]
         | ./src/renderer/views/viewcolorpicker.jsx 5.63 KiB [built]
         | ./src/renderer/views/viewstatesettings.jsx 25.9 KiB [built]
         | ./src/renderer/sections/sectionsettingbrightness.jsx 8.39 KiB [built]
         | ./src/renderer/sections/sectionsettingsensitivity.jsx 4.82 KiB [built]
         | ./src/renderer/sections/sectionsettingcolor.jsx 4.91 KiB [built]
         | ./src/renderer/sections/sectionproductheader.jsx 4.4 KiB [built]
         | ./src/renderer/sections/sectionsettingpollrate.jsx 8.93 KiB [built]
         | ./src/renderer/sections/sectionsettingblock.jsx 4.41 KiB [built]
         | ./src/main/feature/featureidentifier.js 711 bytes [built]
         |     + 51 hidden modules
        + 26 hidden modules
    Child HtmlWebpackCompiler:
         1 asset
        Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
        [0] ./node_modules/html-loader/dist/cjs.js?minimize=false!./dist/.renderer-index-template.html 274 bytes {0} [built]
    Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!src/renderer/index.css:
        Entrypoint mini-css-extract-plugin = *
        [0] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./src/renderer/index.css 5.52 KiB {0} [built]
            + 1 hidden module
    Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--6-1!src/renderer/react-tabs.css:
        Entrypoint mini-css-extract-plugin = *
        [0] ./node_modules/css-loader/dist/cjs.js??ref--6-1!./src/renderer/react-tabs.css 1.47 KiB {0} [built]
            + 1 hidden module
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.