How to change the "outdated packaged application" to "extension"?

I looked at the Google documentation, but don’t see how to change its type.

This is the error I get when downloading.

When trying to install this extension, there were warnings: "browser_action" is allowed only for extensions, and this is an outdated packaged application.

This is my manifest.json.

{ "name": "first app", "description": "this is my first app", "version": "1.4", "manifest_version": 2, "content_security_policy": "script-src 'self' https://en.wiktionary.org/; object-src 'self'", "background": { "page": "background.html" }, "app": { "launch": { "local_path": "index.html" } }, "browser_action": { "default_icon": "icon.png" }, "icons": { "128": "icon.png", "16": "icon.png" }, "permissions": [ "http://*/*", "https://*/*", "https://en.wiktionary.org/", "http://en.wiktionary.org/", "tabs", "contextMenus", "storage", "unlimitedStorage", "notifications"] } 

All I have is a right-click at any time when viewing and storing this text for viewing on the main page. I added to "browser_action" because the chrome store does not allow me to download my extension as a "legacy packaged application", but I really don't understand what it is even after reading the documentation.

+6
source share
1 answer

For the application, use a manifest that looks like this:

 { // Required "app": { "background": { // Optional "scripts": ["background.js"] } }, "manifest_version": 2, "name": "My App", "version": "versionString", ... 

For extension use

 { // Required "manifest_version": 2, "name": "My Extension", "version": "versionString", // Recommended "default_locale": "en", "description": "A plain text description", "icons": {...}, // Pick one (or none) "browser_action": {...}, "page_action": {...}, ... 
+10
source

Source: https://habr.com/ru/post/952461/


All Articles