Skip to content

Asar: false, causing exception on app startup with v16.4.0 #1409

@dharders

Description

@dharders
  • Version: 16.4.0
  • Target: Win64 NSIS

Just updated from 15.4.3 to 16.4.0

Received the following exception on App startup (install OK):

A JavaScript error occurred in the main process
Uncaught Exception:
Error: Unable to find a valid app at Object. ......\resources\electron.asar\browser\init....:9

If I set asar: true, all is good.

I use asar: false during development.

Build Config:

"build": {
    "appId": "com.myapp.myapp",
    "asar": false,
    "productName": "My App",
    "compression": "store",
    "npmRebuild": false,
    "win": {
      "target": [
        "nsis"
      ],
      "certificateSubjectName": "My Cert",
      "legalTrademarks": "My Trademark™"
    },    
    "nsis": {
      "perMachine": false,
      "allowElevation": true,
      "oneClick": true,
      "language": "3081"
    },
    "directories": {
      "buildResources": "resources",
      "output": "package_desktop",
      "app": "dist"
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions