-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
separating manifest for chrome and firefox extensions
- Loading branch information
Showing
6 changed files
with
44 additions
and
88 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,49 @@ | ||
{ | ||
"name": "__MSG_appName__", | ||
"short_name": "TagSpaces", | ||
"version": "0.0.0.0", | ||
"manifest_version": 2, | ||
"manifest_version": 3, | ||
"homepage_url": "https://www.tagspaces.org", | ||
"description": "__MSG_appDesc__", | ||
"permissions": [ | ||
"<all_urls>", | ||
"pageCapture", | ||
"tabs", | ||
"downloads", | ||
"contextMenus", | ||
"activeTab", | ||
"storage" | ||
"storage", | ||
"scripting" | ||
], | ||
"content_security_policy": {}, | ||
"default_locale": "en_US", | ||
"browser_action": { | ||
"action": { | ||
"default_icon": "images/icon-128.png", | ||
"default_title": "__MSG_appLauncher__", | ||
"default_popup": "popup.html", | ||
"browser_style": true | ||
"default_popup": "popup.html" | ||
}, | ||
"icons": { | ||
"16": "images/icon-16.png", | ||
"48": "images/icon-48.png", | ||
"128": "images/icon-128.png" | ||
}, | ||
"host_permissions": ["http://*/", "https://*/", "<all_urls>"], | ||
"background": { | ||
"scripts": ["background.dist.js"] | ||
"scripts": ["service-worker.dist.js"] | ||
}, | ||
"commands": { | ||
"_execute_action": { | ||
"suggested_key": { | ||
"default": "Ctrl+Shift+S", | ||
"mac": "Command+Shift+S" | ||
} | ||
} | ||
}, | ||
"options_ui": { | ||
"page": "options.html" | ||
}, | ||
"applications": { | ||
"browser_specific_settings": { | ||
"gecko": { | ||
"id": "jid1-FBaMKxTifTSahQ@jetpack" | ||
} | ||
}, | ||
"homepage_url": "https://www.tagspaces.org" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
const sh = require('shelljs'); | ||
const packageJSON = require('../package.json'); | ||
const sh = require("shelljs"); | ||
const packageJSON = require("../package.json"); | ||
const currentVersion = packageJSON.version; | ||
// const path = require('path'); | ||
|
||
console.log('Patching with version: ' + currentVersion); | ||
console.log("Patching with version: " + currentVersion); | ||
|
||
// sh.cd('build/chrome') | ||
sh.sed('-i', '0.0.0.0', currentVersion, 'build/chrome/manifest.json'); | ||
sh.sed('-i', '0.0.0.0', currentVersion, 'build/firefox/manifest.json'); | ||
|
||
sh.sed("-i", "0.0.0.0", currentVersion, "build/chrome/manifest.json"); | ||
sh.sed("-i", "0.0.0.0", currentVersion, "build/firefox/manifest.json"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters