I cannot compress new extension for Chrome

Asked

Viewed 477 times

0

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

Package extension error

Failed to issue private key.

I can "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>

js scripts.:

$(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"
            ]
        }
    ]
}

1 answer

0


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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.