naviapps / create-nw-react-app

Create NW.js React apps with no build configuration.
MIT License
141 stars 14 forks source link

Error While trying to build - Renaming EXE failed or unable to modify EXE. If it's the latter, ensure WINE is installed or build in Windows #76

Open MegalithOfficial opened 8 months ago

MegalithOfficial commented 8 months ago

Hello, today I was trying to build my project. I encountered this error while the script was running:

[ ERROR ] 2024-03-02T17:11:14.293Z Error executing command (C:\Users\user\deep-diarie\node_modules\nw-builder-platforms\bin\rcedit-x64.exe C:\Users\user\deep-diarie\out\win32\deep-diarie.exe --set-version-string FileVersion 0.1.0 --set-version-string InternalName deep-diarie --set-version-string OriginalFilename deep-diarie --set-version-string PrivateBuild deep-diarie --set-version-string ProductName deep-diarie --set-version-string SpecialBuild deep-diarie --set-icon ./src/logo.icns):
spawn C:\Users\user\deep-diarie\node_modules\nw-builder-platforms\bin\rcedit-x64.exe ENOENT
The system cannot find the path specified.

Well, I still got the .exe file, but it wasn't working as expected. Here is my package.json:

{
  "name": "deep-diarie",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@chakra-ui/react": "^2.8.2",
    "@emotion/react": "^11.11.4",
    "@emotion/styled": "^11.11.0",
    "@testing-library/jest-dom": "^5.17.0",
    "@testing-library/react": "^13.4.0",
    "@testing-library/user-event": "^13.5.0",
    "framer-motion": "^11.0.8",
    "nw-react-scripts": "5.1.1",
    "react": "^18.2.0",
    "react-dom": "^18.2.0",
    "react-router-dom": "^6.22.2",
    "web-vitals": "^2.1.4"
  },
  "scripts": {
    "start": "nw-react-scripts start",
    "build": "nw-react-scripts build",
    "test": "nw-react-scripts test",
    "eject": "nw-react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "nw-react-app",
      "nw-react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  },
  "main": "index.html",
  "nwbuilds": {
    "//": "https://nwutils.io/nw-builder/",
    "platforms": [
      "win32",
      "win64"
    ],
    "version": "latest",
    "flavor": "normal",
    "outDir": "./out",
    "cacheDir": "./cache",
    "app": {
      "name": "deep-diarie",
      "icon": "./src/logo.icns"
    }
  }
}

Im using npm v10.2.4 and node.js v21.6.1