Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Add MS Edge as browser extension build target (#581)

Leendert de Borst7298f8914d48
diff --git a/.github/workflows/browser-extension-build.yml b/.github/workflows/browser-extension-build.yml
index 7094b5f38..c9ea4560c 100644
--- a/.github/workflows/browser-extension-build.yml
+++ b/.github/workflows/browser-extension-build.yml
@@ -82,7 +82,46 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: aliasvault-firefox-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', github.sha) || github.sha) }}
- path: dist/aliasvault-browser-extension-*-firefox.zip
+ path: |
+ dist/aliasvault-browser-extension-*-firefox
+ dist/aliasvault-browser-extension-*-sources
+
+ build-edge-extension:
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: browser-extension
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Setup Node.js
+ uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ cache-dependency-path: browser-extension/package-lock.json
+
+ - name: Install dependencies
+ run: npm ci
+
+ - name: Build extension
+ run: npm run build:edge
+
+ - name: Run tests
+ run: npm run test
+
+ - name: Run linting
+ run: npm run lint
+
+ - name: Zip Edge Extension
+ run: npm run zip:edge
+
+ - name: Upload dist artifact
+ uses: actions/upload-artifact@v4
+ with:
+ name: aliasvault-edge-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', github.sha) || github.sha) }}
+ path: dist/aliasvault-browser-extension-*-edge.zip
upload-chrome-release-assets:
runs-on: ubuntu-latest
@@ -115,5 +154,24 @@ jobs:
- name: Upload Firefox Extension ZIP to Release
uses: softprops/action-gh-release@v2
with:
- files: dist/aliasvault-browser-extension-*-firefox.zip
+ files: |
+ dist/aliasvault-browser-extension-*-firefox
+ dist/aliasvault-browser-extension-*-sources
+ token: ${{ secrets.GITHUB_TOKEN }}
+
+ upload-edge-release-assets:
+ runs-on: ubuntu-latest
+ needs: [build-edge-extension]
+ if: github.event_name == 'release' && github.event.action == 'published'
+ steps:
+ - name: Download built artifact
+ uses: actions/download-artifact@v4
+ with:
+ name: aliasvault-edge-extension-${{ github.event_name == 'release' && github.ref_name || (github.ref_name == 'main' && format('main-{0}', github.sha) || github.sha) }}
+ path: dist
+
+ - name: Upload Edge Extension ZIP to Release
+ uses: softprops/action-gh-release@v2
+ with:
+ files: dist/aliasvault-browser-extension-*-edge.zip
token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/browser-extension/README.md b/browser-extension/README.md
index 5c4fde652..37f628c20 100644
--- a/browser-extension/README.md
+++ b/browser-extension/README.md
@@ -13,6 +13,9 @@ npm install
# Build the Chrome extension (saves in dist/chrome-mv3)
npm run zip:chrome
-# Build the Firefox extension (saves in dist/firefox-mv2)
+# Build the Firefox extension (creates two zip files in dist)
npm run zip:firefox
+
+# Build the Edge extension (saves in dist/edge-mv3)
+npm run zip:edge
```
diff --git a/browser-extension/package.json b/browser-extension/package.json
index 5f60c7db9..65258a9b1 100644
--- a/browser-extension/package.json
+++ b/browser-extension/package.json
@@ -7,8 +7,10 @@
"scripts": {
"dev:chrome": "wxt -b chrome",
"dev:firefox": "wxt -b firefox",
+ "dev:edge": "wxt -b edge",
"build:chrome": "wxt build -b chrome",
"build:firefox": "wxt build -b firefox",
+ "build:edge": "wxt build -b edge",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint src",
@@ -17,6 +19,7 @@
"zip": "wxt zip",
"zip:chrome": "wxt zip -b chrome",
"zip:firefox": "wxt zip -b firefox",
+ "zip:edge": "wxt zip -b edge",
"compile": "tsc --noEmit",
"postinstall": "wxt prepare"
},
diff --git a/docs/browser-extensions/edge/build-from-source.md b/docs/browser-extensions/edge/build-from-source.md
new file mode 100644
index 000000000..717fa6f57
--- /dev/null
+++ b/docs/browser-extensions/edge/build-from-source.md
@@ -0,0 +1,50 @@
+---
+layout: default
+title: Build from Source
+parent: Microsoft Edge
+grand_parent: Browser Extensions
+nav_order: 2
+---
+
+# Building Microsoft Edge Extension from Source
+
+This guide explains how to build and install the AliasVault Microsoft Edge extension from source code.
+
+## Prerequisites
+
+- Node.js installed on your computer
+- Git to clone the repository (optional)
+
+## Building the Microsoft Edge Extension
+
+1. Clone the repository:
+```bash
+git clone https://github.com/lanedirt/AliasVault.git
+```
+
+2. Navigate to the Browser Extension directory:
+```bash
+cd AliasVault/browser-extension
+```
+
+3. Install the required dependencies:
+```bash
+npm install
+```
+
+4. Build the extension:
+```bash
+npm run build:edge
+```
+
+## Installing in Microsoft Edge
+
+1. Open Microsoft Edge and go to `edge://extensions/`
+2. Enable "Developer mode" using the toggle in the top right corner
+3. Click "Load unpacked"
+4. Navigate to and select the folder `browser-extension/dist/edge-mv3`
+5. The AliasVault extension should now appear in your extensions list
+
+## Development Mode (Optional)
+
+If you plan to modify the extension code, see the [browser-extensions](../../misc/dev/browser-extensions.md) developer documentation for more information.
diff --git a/docs/browser-extensions/edge/index.md b/docs/browser-extensions/edge/index.md
new file mode 100644
index 000000000..9ab00f7dc
--- /dev/null
+++ b/docs/browser-extensions/edge/index.md
@@ -0,0 +1,19 @@
+---
+layout: default
+title: Google Chrome
+parent: Browser Extensions
+nav_order: 1
+---
+
+# Google Chrome Extension
+In order to install the Google Chrome Extension, see the options below.
+
+## Chrome Web Store
+Installing the extension from the Chrome Web Store is the easiest way to get started. This ensures that you are always using the latest version of the extension.
+
+1. Go to the [Chrome Web Store](https://chromewebstore.google.com/detail/aliasvault/bmoggiinmnodjphdjnmpcnlleamkfedj)
+2. Click on the "Add to Chrome" button
+3. The extension will be installed and added to your browser
+
+## Build from Source
+If you wish to install the extension from source instead, see the [build-from-source](build-from-source.md) documentation. This will allow you to make changes to the extension and/or to use a specific version of the extension.
\ No newline at end of file
diff --git a/docs/misc/dev/browser-extensions.md b/docs/misc/dev/browser-extensions.md
index 3bdf04d12..a94e6cb4c 100644
--- a/docs/misc/dev/browser-extensions.md
+++ b/docs/misc/dev/browser-extensions.md
@@ -27,16 +27,19 @@ npm install
WXT provides a development mode that automatically reloads changes and opens a new browser window with the extension loaded:
```bash
-# For Chrome development
+# For Google Chrome development
npm run dev:chrome
# For Firefox development
npm run dev:firefox
+
+# For Microsoft Edge development
+npm run dev:edge
```
## Building and Loading the Extensions Manually
-### Chrome
+### Google Chrome
1. Build the extension:
```bash
@@ -61,6 +64,18 @@ npm run build:firefox
- Click "Load Temporary Add-on"
- Navigate to the `./browser-extension/dist/firefox-mv2` folder and select the `manifest.json` file
+### Microsoft Edge
+
+1. Build the extension:
+```bash
+npm run build:edge
+```
+
+2. Load in Edge:
+ - Open Edge and navigate to `edge://extensions/`
+ - Enable "Developer mode" in the top right corner
+ - Click "Load unpacked" and the folder `./browser-extension/dist/edge-mv3`
+
## Automatic tests
The extension has a suite of automatic tests that are run on every pull request. These tests are located in the `__tests__` directories scattered throughout the browser extension codebase.
diff --git a/docs/misc/release/create-new-release.md b/docs/misc/release/create-new-release.md
index 963f73d51..0fce71353 100644
--- a/docs/misc/release/create-new-release.md
+++ b/docs/misc/release/create-new-release.md
@@ -54,3 +54,5 @@ The GitHub Actions workflow `Publish Browser Extension` will build the browser e
1. Download the browser extension archive from the GitHub Actions Artifacts page.
2. Upload the archive to the Chrome Web Store.
+3. Upload the archive (normal + sources) to the Firefox Add-ons page.
+4. Upload the archive to the Microsoft Edge Add-ons page.