prepare code source for firefox
This commit is contained in:
@@ -141,17 +141,36 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
npm install
|
||||
cross-env NODE_ENV=production BETA=1 FIREFOX=1 webpack
|
||||
SUFFIX=beta-firefox npm run build-zip
|
||||
npm run build:firefox:beta
|
||||
|
||||
# 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
|
||||
if: matrix.variant == 'beta-firefox'
|
||||
shell: bash
|
||||
run: |
|
||||
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
|
||||
|
||||
# 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
|
||||
if: matrix.variant == 'full'
|
||||
shell: bash
|
||||
|
||||
@@ -5,3 +5,4 @@
|
||||
.DS_Store
|
||||
.idea/
|
||||
.dev.json
|
||||
code-for-reviewer/
|
||||
@@ -10,6 +10,8 @@
|
||||
"prettier:write": "npm run prettier -- --write",
|
||||
"prettier:check": "prettier --check \"src/**/*.{js,vue}\"",
|
||||
"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:beta": "cross-env NODE_ENV=production BETA=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