-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
#!/bin/sh | ||
npx rollup -c rollup.config.js | ||
|
||
zip -r singlefile-extension-source.zip manifest.json package.json _locales extension common lib rollup*.js .eslintrc.js build-extension.sh | ||
zip -r singlefile-extension-source.zip manifest.json package.json _locales src rollup*.js .eslintrc.js build-extension.sh | ||
|
||
rm singlefile-extension-firefox.zip singlefile-extension-chromium.zip singlefile-extension-edge.zip | ||
cp manifest.json manifest.copy.json | ||
cp extension/core/bg/downloads.js downloads.copy.js | ||
sed -i 's/207618107333-3pj2pmelhnl4sf3rpctghs9cean3q8nj/207618107333-7tjs1im1pighftpoepea2kvkubnfjj44/g' extension/core/bg/downloads.js | ||
cp src/extension/core/bg/downloads.js downloads.copy.js | ||
sed -i 's/207618107333-3pj2pmelhnl4sf3rpctghs9cean3q8nj/207618107333-7tjs1im1pighftpoepea2kvkubnfjj44/g' src/extension/core/bg/downloads.js | ||
|
||
cp extension/core/bg/config.js config.copy.js | ||
cp extension/core/bg/companion.js companion.copy.js | ||
cp src/extension/core/bg/config.js config.copy.js | ||
cp src/extension/core/bg/companion.js companion.copy.js | ||
jq "del(.options_page,.background.persistent,.optional_permissions[0],.permissions[3],.oauth2)" manifest.copy.json > manifest.json | ||
sed -i 's/207618107333-3pj2pmelhnl4sf3rpctghs9cean3q8nj/207618107333-7tjs1im1pighftpoepea2kvkubnfjj44/g' manifest.json | ||
sed -i 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' extension/core/bg/config.js | ||
sed -i 's/enabled: true/enabled: false/g' extension/core/bg/companion.js | ||
zip -r singlefile-extension-firefox.zip manifest.json dist _locales extension | ||
mv config.copy.js extension/core/bg/config.js | ||
mv companion.copy.js extension/core/bg/companion.js | ||
sed -i 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' src/extension/core/bg/config.js | ||
sed -i 's/enabled: true/enabled: false/g' src/extension/core/bg/companion.js | ||
zip -r singlefile-extension-firefox.zip manifest.json lib _locales src/extension | ||
mv config.copy.js src/extension/core/bg/config.js | ||
mv companion.copy.js src/extension/core/bg/companion.js | ||
|
||
jq "del(.browser_specific_settings,.permissions[0],.permissions[1],.options_ui.browser_style)" manifest.copy.json > manifest.json | ||
sed -i 's/207618107333-3pj2pmelhnl4sf3rpctghs9cean3q8nj/207618107333-7tjs1im1pighftpoepea2kvkubnfjj44/g' manifest.json | ||
zip -r singlefile-extension-chromium.zip manifest.json dist _locales extension | ||
zip -r singlefile-extension-chromium.zip manifest.json lib _locales src/extension | ||
|
||
cp extension/core/bg/config.js config.copy.js | ||
cp src/extension/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/207618107333-3pj2pmelhnl4sf3rpctghs9cean3q8nj/207618107333-7tjs1im1pighftpoepea2kvkubnfjj44/g' manifest.json | ||
sed -i 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' extension/core/bg/config.js | ||
sed -i 's/forceWebAuthFlow: false/forceWebAuthFlow: true/g' src/extension/core/bg/config.js | ||
mkdir _locales.copy | ||
cp -R _locales/* _locales.copy | ||
rm -rf _locales/* | ||
cp -R _locales.copy/en _locales | ||
zip -r singlefile-extension-edge.zip manifest.json dist _locales extension | ||
zip -r singlefile-extension-edge.zip manifest.json lib _locales src/extension | ||
rm -rf _locales/* | ||
mv _locales.copy/* _locales | ||
rmdir _locales.copy | ||
mv config.copy.js extension/core/bg/config.js | ||
mv config.copy.js src/extension/core/bg/config.js | ||
|
||
mv manifest.copy.json manifest.json | ||
mv downloads.copy.js extension/core/bg/downloads.js | ||
mv downloads.copy.js src/extension/core/bg/downloads.js |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.