Sfoglia il codice sorgente

update build scripts and mainfest (cf. SingleFile-MV3)

Gildas 1 anno fa
parent
commit
96c11c90bd
2 ha cambiato i file con 2 aggiunte e 26 eliminazioni
  1. 1 15
      build-extension.sh
  2. 1 11
      manifest.json

+ 1 - 15
build-extension.sh

@@ -24,26 +24,12 @@ jq 'del(.dependencies."single-file-cli")' package.copy.json > package.json
 zip -r singlefile-extension-source.zip manifest.json package.json _locales src rollup*.js .eslintrc.js build-extension.sh
 mv package.copy.json package.json
 
-rm singlefile-extension-firefox.zip singlefile-extension-chromium.zip singlefile-extension-edge.zip
-cp manifest.json manifest.copy.json
+rm singlefile-extension-firefox.zip
 
 cp src/core/bg/config.js config.copy.js
 cp src/core/bg/companion.js companion.copy.js
-jq "del(.options_page,.background.persistent,.optional_permissions[0],.permissions[2],.oauth2)" manifest.copy.json >manifest.json
 sed -i "" 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' src/core/bg/config.js
 sed -i "" 's/enabled: true/enabled: false/g' src/core/bg/companion.js
 zip -r singlefile-extension-firefox.zip manifest.json lib _locales src
 mv config.copy.js src/core/bg/config.js
 mv companion.copy.js src/core/bg/companion.js
-
-jq "del(.browser_specific_settings,.permissions[0],.permissions[1],.options_ui.browser_style)" manifest.copy.json >manifest.json
-zip -r singlefile-extension-chromium.zip manifest.json lib _locales src
-
-cp src/core/bg/config.js config.copy.js
-jq "del(.browser_specific_settings,.permissions[0],.permissions[1],.options_ui.browser_style)" manifest.copy.json >manifest.json
-sed -i "" 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' src/core/bg/config.js
-sed -i "" 's/image\/avif,//g' src/core/bg/config.js
-zip -r singlefile-extension-edge.zip manifest.json lib _locales src
-mv config.copy.js src/core/bg/config.js
-
-mv manifest.copy.json manifest.json

+ 1 - 11
manifest.json

@@ -39,10 +39,8 @@
 		}
 	],
 	"background": {
-		"page": "src/core/bg/background.html",
-		"persistent": false
+		"page": "src/core/bg/background.html"
 	},
-	"options_page": "src/ui/pages/options.html",
 	"sidebar_action": {
 		"browser_style": true,
 		"default_title": "SingleFile",
@@ -93,23 +91,15 @@
 		"src/ui/pages/editor-mask-web.css",
 		"src/ui/pages/editor-frame-web.css"
 	],
-	"oauth2": {
-		"client_id": "207618107333-7tjs1im1pighftpoepea2kvkubnfjj44.apps.googleusercontent.com",
-		"scopes": [
-			"https://www.googleapis.com/auth/drive.file"
-		]
-	},
 	"permissions": [
 		"identity",
 		"menus",
-		"contextMenus",
 		"downloads",
 		"storage",
 		"tabs",
 		"<all_urls>"
 	],
 	"optional_permissions": [
-		"identity",
 		"clipboardWrite",
 		"nativeMessaging",
 		"bookmarks",