Skip to content

Commit 045ed9c

Browse files
authored
browser: v1.10, Firefox support (keybase#7582)
* browser: progress: generalizing for firefox * browser: firefox nativemessaging works * browser: firefox popup style tweak * browser: Add charset to html firefox was complaining * browser: make release with firefox support, updated README * browser: Silence firefox warning about declarativeContent * browser: Use relative font paths * browser: version bump to 1.10.1 * browser: Grammarly css fix * browser: keybase.io identity match on .profile-heading * browser: inline fonts as base64 so they work on firefox
1 parent a1b877b commit 045ed9c

15 files changed

Lines changed: 79 additions & 41 deletions

‎browser/Makefile‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ release: clean bundle
55
git archive HEAD . | tar x -C build/
66
cp js/bundle.js build/js/bundle.js
77
cp ../LICENSE build/LICENSE
8-
sed -i "" '/"key"\:/d' build/manifest.json # Strip hardcoded dev key
9-
cd build && zip -r ../keybase-extension-$(shell grep '"version":' manifest.json | cut -d '"' -f4).zip .
8+
jq 'del(.key)' build/manifest.json > build/manifest.firefox.json
9+
jq 'del(.key,.applications)' build/manifest.json > build/manifest.chrome.json
10+
@echo "Packaging Chrome..."
11+
cp build/manifest.chrome.json build/manifest.json
12+
cd build && zip -q -r ../keybase-firefox-$(shell jq -r ".version" manifest.json).zip .
13+
@echo "Packaging Firefox..."
14+
cp build/manifest.firefox.json build/manifest.json
15+
cd build && zip -q -r ../keybase-chrome-$(shell jq -r ".version" manifest.json).zip .
1016

1117
clean:
1218
rm -rf build/

‎browser/README.md‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ other browsers too.
88

99
## Releasing a new version
1010

11-
There's a handy `Makefile` that will do most of the work:
11+
There's a handy `Makefile` that will do most of the work (assuming you have
12+
[jq](https://stedolan.github.io/jq/) installed):
1213

1314
```shell
1415
$ make release
1516
```
1617

17-
This will produce a file that looks like `keybase-extension-1.2.3.zip` (except
18+
This will produce a file that looks like `keybase-chrome-1.2.3.zip` (except with
1819
whatever the current version is set in the `manifest.json`).
1920

2021
Upload that file to the Chrome extension dashboard, hit publish, and we're done.
@@ -52,6 +53,16 @@ To uninstall, you can run:
5253
$ $GOPATH/bin/kbnm uninstall
5354
```
5455

56+
Alternatively, recent versions of `kbnm` also comes with a built-in installer:
57+
58+
```shell
59+
$ go get -u github.com/keybase/client/go/kbnm
60+
$ $GOPATH/bin/kbnm install
61+
…
62+
$ $GOPATH/bin/kbnm uninstall
63+
…
64+
```
65+
5566

5667
## License
5768

‎browser/css/fonts.css‎

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎browser/css/popup.css‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ body {
1717
.keybase-nudge {
1818
min-height: 40px;
1919
}
20+
21+
textarea {
22+
font-family: inherit;
23+
}

‎browser/css/style.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ li.keybase-reply form, form.keybase-reply {
2727
}
2828

2929
.keybase-reply label {
30-
width: 100%;
30+
width: 100% !important;
3131
display: inline-block;
3232
}
3333

-116 KB
Binary file not shown.

‎browser/fonts/OpenSans.ttf‎

-112 KB
Binary file not shown.

‎browser/fonts/OpenSans_bold.ttf‎

-119 KB
Binary file not shown.

‎browser/fonts/OpenSans_italic.ttf‎

-107 KB
Binary file not shown.

‎browser/html/options.html‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<!doctype html>
2-
<html>
2+
<html lang="en">
33

44
<head>
5+
<meta charset="utf-8" />
56
<title>Keybase Options</title>
67
<style>
78
body {

0 commit comments

Comments
 (0)