Parcourir la source

Improve web extension submission

pull/447/head
Guillaume Vincent il y a 5 ans
Parent
révision
427f07f903
5 fichiers modifiés avec 9 ajouts et 17 suppressions
  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 Voir le fichier

@@ -4,17 +4,8 @@ set -o errexit
set -o pipefail
set -o nounset

VERSION=$(grep -Po '(?<="version": ")[^"]*' package.json)
yarn install
yarn workspace lesspass-pure run build
rm -rf 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/
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 Voir le fichier

@@ -16,8 +16,8 @@
"axios": "0.19.0",
"debounce": "1.2.0",
"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",
"memoize-one": "^5.0.4",
"react": "^16.8.6",


+ 1
- 1
packages/lesspass-web-extension/amo.md Voir le fichier

@@ -5,7 +5,7 @@
The web extension is just a wrapper around lesspass-pure on npm

node --version: v10.15.0
npm --version: v6.4.1
yarn --version: v1.16.0

## Rebuild the web extension with sources



+ 1
- 1
packages/lesspass-web-extension/extension/manifest.json Voir le fichier

@@ -27,7 +27,7 @@
"applications": {
"gecko": {
"id": "contact@lesspass.com",
"strict_min_version": "48.0"
"strict_min_version": "57.0"
}
}
}

+ 5
- 4
packages/lesspass-web-extension/package.json Voir le fichier

@@ -5,11 +5,12 @@
"license": "GPL-3.0",
"author": "Guillaume Vincent <guillaume@oslab.fr>",
"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",
"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": {
"lesspass-pure": "9.0.0"


Chargement…
Annuler
Enregistrer