I can not compress new extension for chrome

0

When I try to compress an extension that I'm creating for Google Chrome, I get the message below:

Package extension error

Failed to issue private key.

I get "Load without Compaction" and run it perfectly.

Code below:

popup.html:

<!doctype html>
<html>
    <head>
        <title>Hello World</title>
    </head>
    <body>
        <h1>Hello World!</h1>
    </body>
    <script type='text/javascript' src='./jquery.min.js'></script>
    <script type='text/javascript' src='./scripts.js'></script>
</html>

scripts.js:

$(document).ready(function () {
    if ($('.LoginScreen').length > 0) {
        $("#username").val("usuarioteste");
        $("#password").val("senhateste");
        $("form[name='loginForm'] .DwtButton").click();
    }
});

manifest.json:

{
    "name": "Auto Complete Zimbra",
    "version": "1.1",
    "description": "Extensão para autocompletar e logar automaticamente no Zimbra!",
    "manifest_version": 2,
    "browser_action": {
        "default_icon": "favicon.ico",
        "default_popup": "popup.html"
    },
    "permissions": [
        "*://*.meusite.com.br/*"
    ],
    "content_scripts": [
        {
            "matches": [
                "*://*.meusite.com.br/*"
            ],
            "js": [
                "jquery.min.js",
                "scripts.js"
            ]
        }
    ]
}
    
asked by anonymous 28.11.2018 / 21:03

1 answer

0

The problem was that I was using C:/extensão and Chrome was trying to create the file in C:/ .

So I created a folder inside C:/extensão and got C:/extensões/extensão and it worked right.

    
06.12.2018 / 16:36