prepare code source for firefox
This commit is contained in:
@@ -141,16 +141,35 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
cross-env NODE_ENV=production BETA=1 FIREFOX=1 webpack
|
npm run build:firefox:beta
|
||||||
SUFFIX=beta-firefox npm run build-zip
|
|
||||||
|
# dist-zip/simplelogin-extension-beta-firefox-v... can be submitted to firefox
|
||||||
|
SUFFIX=firefox npm run build-zip
|
||||||
|
|
||||||
|
# create the code source for firefox reviewer
|
||||||
|
rm -rf code-for-reviewer && mkdir code-for-reviewer
|
||||||
|
# copy the minimum files
|
||||||
|
cp -r src LICENSE CHANGELOG scripts package.json package-lock.json webpack.config.js .dev.sample.json .babelrc code-for-reviewer
|
||||||
|
# override the readme
|
||||||
|
cp reviewers/firefox-beta.md code-for-reviewer/README.md
|
||||||
|
|
||||||
|
|
||||||
- name: Build production version for Firefox
|
- name: Build production version for Firefox
|
||||||
if: matrix.variant == 'beta-firefox'
|
if: matrix.variant == 'beta-firefox'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
cross-env NODE_ENV=production FIREFOX=1 webpack
|
npm run build:firefox
|
||||||
|
|
||||||
|
# dist-zip/simplelogin-extension-beta-firefox-v... can be submitted to firefox
|
||||||
SUFFIX=firefox npm run build-zip
|
SUFFIX=firefox npm run build-zip
|
||||||
|
|
||||||
|
# create the code source for firefox reviewer
|
||||||
|
rm -rf code-for-reviewer && mkdir code-for-reviewer
|
||||||
|
# copy the minimum files
|
||||||
|
cp -r src LICENSE CHANGELOG scripts package.json package-lock.json webpack.config.js .dev.sample.json .babelrc code-for-reviewer
|
||||||
|
# override the readme
|
||||||
|
cp reviewers/firefox.md code-for-reviewer/README.md
|
||||||
|
|
||||||
- name: Build production version for Chromium
|
- name: Build production version for Chromium
|
||||||
if: matrix.variant == 'full'
|
if: matrix.variant == 'full'
|
||||||
|
|||||||
+2
-1
@@ -4,4 +4,5 @@
|
|||||||
/dist-zip
|
/dist-zip
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea/
|
.idea/
|
||||||
.dev.json
|
.dev.json
|
||||||
|
code-for-reviewer/
|
||||||
@@ -10,6 +10,8 @@
|
|||||||
"prettier:write": "npm run prettier -- --write",
|
"prettier:write": "npm run prettier -- --write",
|
||||||
"prettier:check": "prettier --check \"src/**/*.{js,vue}\"",
|
"prettier:check": "prettier --check \"src/**/*.{js,vue}\"",
|
||||||
"build": "cross-env NODE_ENV=production webpack",
|
"build": "cross-env NODE_ENV=production webpack",
|
||||||
|
"build:firefox": "cross-env NODE_ENV=production FIREFOX=1 webpack",
|
||||||
|
"build:firefox:beta": "cross-env NODE_ENV=production BETA=1 FIREFOX=1 webpack",
|
||||||
"build:lite": "cross-env NODE_ENV=production LITE=1 webpack",
|
"build:lite": "cross-env NODE_ENV=production LITE=1 webpack",
|
||||||
"build:beta": "cross-env NODE_ENV=production BETA=1 webpack",
|
"build:beta": "cross-env NODE_ENV=production BETA=1 webpack",
|
||||||
"build:mac": "cross-env NODE_ENV=production MAC=1 webpack",
|
"build:mac": "cross-env NODE_ENV=production MAC=1 webpack",
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
SimpleLogin Chrome/Firefox extension
|
||||||
|
---
|
||||||
|
|
||||||
|
Please find below the instructions for building the SimpleLogin extension from source.
|
||||||
|
|
||||||
|
This project has been tested with Node v20.2.0 and NPM 9.6.6.
|
||||||
|
|
||||||
|
Please run the following commands to install dependencies and generate a build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
NODE_OPTIONS=--openssl-legacy-provider npm install
|
||||||
|
npm run build:firefox:beta
|
||||||
|
npm run build-zip
|
||||||
|
```
|
||||||
|
|
||||||
|
After that the build should be available in `/dist` folder. Its zip file can be found in `dist-zip` folder.
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
SimpleLogin Chrome/Firefox extension
|
||||||
|
---
|
||||||
|
|
||||||
|
Please find below the instructions for building the SimpleLogin extension from source.
|
||||||
|
|
||||||
|
This project has been tested with Node v20.2.0 and NPM 9.6.6.
|
||||||
|
|
||||||
|
Please run the following commands to install dependencies and generate a build
|
||||||
|
|
||||||
|
```bash
|
||||||
|
NODE_OPTIONS=--openssl-legacy-provider npm install
|
||||||
|
npm run build:firefox
|
||||||
|
npm run build-zip
|
||||||
|
```
|
||||||
|
|
||||||
|
After that the build should be available in `/dist` folder. Its zip file can be found in `dist-zip` folder.
|
||||||
Reference in New Issue
Block a user