-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
applied necessary changes to stay compatible with 2a5.de
- Loading branch information
Showing
10 changed files
with
69 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,47 @@ | ||
# 2a5-addon | ||
2a5 Browser Bar Extension | ||
|
||
## Development | ||
|
||
- Open Firefox | ||
- Goto: about:debugging#/runtime/this-firefox | ||
- Load Temporary Add-on... | ||
- Select manifest.json | ||
- Click Inspect button and open tab network to see XHR requests in action | ||
|
||
## Prepare Publishing | ||
```bash | ||
sudo npm install --global web-ext | ||
cd app | ||
``` | ||
|
||
This is how web-ext works: https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/ | ||
|
||
|
||
## Publish: go the manual upload way | ||
```bash | ||
web-ext build | ||
``` | ||
Upload the packed zip file from web-ext-artifacts: | ||
- Login to mozilla and goto https://addons.mozilla.org/de/developers/addon/2a5-de-url-shortener-addon/versions/submit/ | ||
|
||
Wait until it gets accepted. | ||
|
||
Then goto https://addons.mozilla.org/de/developers/addon/2a5-de-url-shortener-addon/versions/5549013 and download the XPI file | ||
|
||
Put the XPI file to `releases` folder and calculate checksum `sha256sum 2a5_de_url_shortener_addon-1.2.0.xpi`. | ||
|
||
|
||
## Publish: go the cli way | ||
|
||
Go and get a key here https://addons.mozilla.org/de/developers/addon/api/key/ | ||
|
||
Grab the UUID from addons page https://addons.mozilla.org/de/developers/addon/2a5-de-url-shortener-addon/edit | ||
|
||
Then run: | ||
```bash | ||
web-ext sign --channel=listed --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET --id="{UUID}" | ||
``` | ||
|
||
Yeah... this is not working... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ | |
"activeTab", | ||
"clipboardWrite" | ||
], | ||
"version": "1.0.0" | ||
} | ||
"version": "1.2.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...2a5de_url_shortener_addon-1.0.0-fx.sha256 → ...s/2a5_de_url_shortener_addon-1.0.0.sha256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
fcd40a662708b4b115d3690de92a7e9405430e4ba602ee9a84f6d691f3d9bff0 2a5de_url_shortener_addon-1.0.0-fx.xpi | ||
fcd40a662708b4b115d3690de92a7e9405430e4ba602ee9a84f6d691f3d9bff0 2a5de_url_shortener_addon-1.0.0.xpi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
</head> | ||
<body> | ||
<h1>2a5.de URL Shortener Addon 1.2.0</h1> | ||
<div>2a5.de was updated recently and therefore api routes needed an update.</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5f41fd964b62c28591a5a8d0c59007108eeaccecd2f94a38edb88dd33d26d49f 2a5de_url_shortener_addon-1.2.0.xpi |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters