Ver código fonte

Rename manifest.json files

simov 2 anos atrás
pai
commit
14bbfdd631
4 arquivos alterados com 10 adições e 91 exclusões
  1. 5 1
      .gitignore
  2. 5 5
      build/package.sh
  3. 0 0
      manifest.chrome.json
  4. 0 85
      manifest.edge.json

+ 5 - 1
.gitignore

@@ -2,4 +2,8 @@ npm-debug.log
 coverage/
 node_modules/
 package-lock.json
-*.zip
+
+/themes/
+/vendor/
+/*.zip
+/manifest.json

+ 5 - 5
build/package.sh

@@ -7,7 +7,7 @@ browser=$1
 
 if [ -z "$browser" ]; then
   echo "Specify target browser"
-  echo "chrome, firefox, edge"
+  echo "chrome, firefox"
   exit 1
 fi
 
@@ -34,15 +34,15 @@ cd ..
 cp -r background content icons options popup themes vendor build/tmp/markdown-viewer/
 
 if [ "$browser" = "chrome" ]; then
-  cp manifest.json build/tmp/markdown-viewer/
+  cp manifest.chrome.json build/tmp/markdown-viewer/manifest.json
+  cp manifest.chrome.json manifest.json
 elif [ "$browser" = "firefox" ]; then
   cp manifest.firefox.json build/tmp/markdown-viewer/manifest.json
-elif [ "$browser" = "edge" ]; then
-  cp manifest.edge.json build/tmp/markdown-viewer/manifest.json
+  cp manifest.firefox.json manifest.json
 fi
 
 # zip the markdown-viewer folder itself
-if [ "$browser" = "chrome" ] || [ "$browser" = "edge" ]; then
+if [ "$browser" = "chrome" ]; then
   cd build/tmp/
   zip -r ../../markdown-viewer.zip markdown-viewer
   cd ..

+ 0 - 0
manifest.json → manifest.chrome.json


+ 0 - 85
manifest.edge.json

@@ -1,85 +0,0 @@
-{
-  "manifest_version": 2,
-  "name"            : "Markdown Viewer",
-  "version"         : "4.0",
-  "description"     : "Markdown Viewer",
-
-  "browser_action": {
-    "default_icon": {
-      "19" : "/icons/icon19.png",
-      "38" : "/icons/icon38.png"
-    },
-    "default_title": "Markdown Viewer",
-    "default_popup": "/popup/index.html"
-  },
-
-  "options_page": "/options/index.html",
-
-  "background" : {
-    "scripts": [
-      "/vendor/marked.min.js",
-      "/vendor/remark.min.js",
-
-      "/background/compilers/marked.js",
-      "/background/compilers/remark.js",
-
-      "/background/storage.js",
-      "/background/webrequest.js",
-      "/background/detect.js",
-      "/background/inject.js",
-      "/background/messages.js",
-      "/background/mathjax.js",
-      "/background/xhr.js",
-
-      "/background/index.js"
-    ],
-    "persistent": false
-  },
-
-  "web_accessible_resources": [
-    "/themes/github.css",
-    "/themes/github-dark.css",
-
-    "/themes/godspeed.css",
-    "/themes/new-modern.css",
-    "/themes/torpedo.css",
-    "/themes/vostok.css",
-
-    "/themes/ghostwriter.css",
-    "/themes/radar.css",
-    "/themes/foghorn.css",
-    "/themes/markdown.css",
-    "/themes/markedapp-byword.css",
-    "/themes/solarized-dark.css",
-    "/themes/solarized-light.css",
-
-    "/themes/screen.css",
-    "/themes/markdown5.css",
-    "/themes/markdown6.css",
-    "/themes/markdown7.css",
-    "/themes/markdown8.css",
-    "/themes/markdown9.css",
-    "/themes/markdown-alt.css"
-  ],
-
-  "icons": {
-    "16" : "/icons/icon16.png",
-    "48" : "/icons/icon48.png",
-    "128": "/icons/icon128.png"
-  },
-
-  "homepage_url": "https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk",
-
-  "permissions": [
-    "storage",
-    "file:///*"
-  ],
-
-  "optional_permissions": [
-    "https://*/",
-    "http://*/",
-    "*://*/",
-    "webRequest",
-    "webRequestBlocking"
-  ]
-}