thom4parisot / grunt-crx

Grunt task used to package private Chrome Extensions.
https://npmjs.com/grunt-crx
MIT License
118 stars 21 forks source link

Fatal error: Unable to locate your private key. #62

Closed mathew-kurian closed 8 years ago

mathew-kurian commented 8 years ago
crx: {
      dist: {
        "src": [
          "chrome-ext/**/*",
          "!.{git,svn}"
        ],
        "dest": "build/chrome-ext.crx",
        "zipDest": "build/chrome-ext.zip",
        "options": {
          "privateKey":__dirname + "/chrome-apps.pem"
        }
      }
    }

MacOSX Yosemite

vi ${_dirname + "/chrome-apps.pem"} # results in the correct file being opened
Ferroman commented 8 years ago

Try to use it like this:

crx: {
      dist: {
        "src": [
          "chrome-ext/**/*",
          "!.{git,svn}"
        ],
        "dest": "build/chrome-ext.crx",
        "zipDest": "build/chrome-ext.zip",
        "privateKey":__dirname + "/chrome-apps.pem"
      }
    }
mathew-kurian commented 8 years ago

Thank you @Ferroman. Personally, this issue was circumvented by simply using the library from Github as opposed to npm.