electron-react-boilerplate icon indicating copy to clipboard operation
electron-react-boilerplate copied to clipboard

Folder app.asar.unpacked never generated

Open joazco opened this issue 3 years ago • 0 comments

Prerequisites

  • [x] Using npm
  • [x] Using an up-to-date main branch
  • [x] Using latest version of devtools. Check the docs for how to update
  • [x] Tried solutions mentioned in #400
  • [x] For issue in production release, add devtools output of DEBUG_PROD=true npm run build && npm start

Expected Behavior

Generate folder app.asar.unpacked with pngquant-bin

Current Behavior

None folder app.asar.unpacked

Steps to Reproduce

Append in package.json in "build" key:

"asarUnpack": [
      "**/node_modules/pngquant-bin/**/*",
      "**/vendo/**/*",
      "node_modules/pngquant-bin",
      "../node_modules/pngquant-bin",
      "./node_modules/pngquant-bin"
    ],

npm run package 3. Search folder app.asar.unpacked. In MacOS is like: release/build/mac/ElectronReact.app/Contents/Resources

Your Environment

  • Node version : 16.18.0
  • electron-react-boilerplate version or branch : main
  • Operating System and version : MacOS but is the same with Windows
  • Link to your project : https://github.com/joazco/TheCompressor

joazco avatar Apr 04 '23 21:04 joazco