Browse Source

Improve web extension submission

pull/447/head
Guillaume Vincent 5 years ago
parent
commit
427f07f903
5 changed files with 9 additions and 17 deletions
  1. +0
    -9
      bin/build_web_extensions
  2. +2
    -2
      mobile/package.json
  3. +1
    -1
      packages/lesspass-web-extension/amo.md
  4. +1
    -1
      packages/lesspass-web-extension/extension/manifest.json
  5. +5
    -4
      packages/lesspass-web-extension/package.json

+ 0
- 9
bin/build_web_extensions View File

@@ -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

+ 2
- 2
mobile/package.json View File

@@ -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",


+ 1
- 1
packages/lesspass-web-extension/amo.md View File

@@ -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




+ 1
- 1
packages/lesspass-web-extension/extension/manifest.json View File

@@ -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
- 4
packages/lesspass-web-extension/package.json View File

@@ -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"


Loading…
Cancel
Save