@@ -4,17 +4,8 @@ set -o errexit | |||||
set -o pipefail | set -o pipefail | ||||
set -o nounset | set -o nounset | ||||
VERSION=$(grep -Po '(?<="version": ")[^"]*' package.json) | |||||
yarn install | yarn install | ||||
yarn workspace lesspass-pure run build | yarn workspace lesspass-pure run build | ||||
rm -rf packages/lesspass-web-extension/extension/dist | rm -rf packages/lesspass-web-extension/extension/dist | ||||
mkdir packages/lesspass-web-extension/extension/dist | mkdir packages/lesspass-web-extension/extension/dist | ||||
rm -rf packages/lesspass-web-extension/build | |||||
mkdir packages/lesspass-web-extension/build | |||||
cp -r packages/lesspass-pure/dist/. packages/lesspass-web-extension/extension/dist/ | cp -r packages/lesspass-pure/dist/. packages/lesspass-web-extension/extension/dist/ | ||||
cd packages/lesspass-web-extension/extension/ | |||||
zip --recurse-paths ../build/lesspass.zip ./* | |||||
cd .. | |||||
cp build/lesspass.zip build/lesspass.firefox-v${VERSION}.xpi | |||||
cp build/lesspass.zip build/lesspass.chrome-v${VERSION}.zip | |||||
rm build/lesspass.zip |
@@ -16,8 +16,8 @@ | |||||
"axios": "0.19.0", | "axios": "0.19.0", | ||||
"debounce": "1.2.0", | "debounce": "1.2.0", | ||||
"fuse.js": "^3.4.4", | "fuse.js": "^3.4.4", | ||||
"lesspass-fingerprint": "../packages/lesspass-fingerprint", | |||||
"lesspass-render-password": "../packages/lesspass-render-password", | |||||
"lesspass-fingerprint": "latest", | |||||
"lesspass-render-password": "latest", | |||||
"lodash": "^4.17.11", | "lodash": "^4.17.11", | ||||
"memoize-one": "^5.0.4", | "memoize-one": "^5.0.4", | ||||
"react": "^16.8.6", | "react": "^16.8.6", | ||||
@@ -5,7 +5,7 @@ | |||||
The web extension is just a wrapper around lesspass-pure on npm | The web extension is just a wrapper around lesspass-pure on npm | ||||
node --version: v10.15.0 | node --version: v10.15.0 | ||||
npm --version: v6.4.1 | |||||
yarn --version: v1.16.0 | |||||
## Rebuild the web extension with sources | ## Rebuild the web extension with sources | ||||
@@ -27,7 +27,7 @@ | |||||
"applications": { | "applications": { | ||||
"gecko": { | "gecko": { | ||||
"id": "contact@lesspass.com", | "id": "contact@lesspass.com", | ||||
"strict_min_version": "48.0" | |||||
"strict_min_version": "57.0" | |||||
} | } | ||||
} | } | ||||
} | } |
@@ -5,11 +5,12 @@ | |||||
"license": "GPL-3.0", | "license": "GPL-3.0", | ||||
"author": "Guillaume Vincent <guillaume@oslab.fr>", | "author": "Guillaume Vincent <guillaume@oslab.fr>", | ||||
"scripts": { | "scripts": { | ||||
"release": "npm run release-cws && npm run release-amo", | |||||
"release-amo": "cd extension && web-ext-submit", | |||||
"release-cws": "webstore upload --source build/lesspass.chrome-v$npm_package_version.zip --auto-publish", | |||||
"start": "cd extension && web-ext run", | "start": "cd extension && web-ext run", | ||||
"test": "echo 0" | |||||
"test": "echo 0", | |||||
"build": "cd ../.. && ./bin/build_web_extensions && cd packages/lesspass-web-extension", | |||||
"release": "npm run release:cws && npm run release:amo", | |||||
"release:amo": "cd extension && web-ext-submit", | |||||
"release:cws": "cd extension && webstore upload --auto-publish" | |||||
}, | }, | ||||
"dependencies": { | "dependencies": { | ||||
"lesspass-pure": "9.0.0" | "lesspass-pure": "9.0.0" | ||||