Skip to content

Commit 6f2703e

Browse files
authored
Merge pull request #144 from soapdog/escape-the-browser
Escape the browser
2 parents d929bb9 + e801c7a commit 6f2703e

File tree

462 files changed

+19684
-252592
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

462 files changed

+19684
-252592
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Build/release
2+
3+
on: push
4+
5+
jobs:
6+
release:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [macos-latest, ubuntu-latest, windows-latest]
12+
13+
steps:
14+
- name: Check out Git repository
15+
uses: actions/checkout@v1
16+
17+
- name: Install Node.js, NPM and Yarn
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 16
21+
22+
- name: Build/release Electron app
23+
uses: samuelmeuli/action-electron-builder@v1
24+
with:
25+
# GitHub token, automatically provided to the action
26+
# (No need to define this secret in the repo settings)
27+
github_token: ${{ secrets.github_token }}
28+
29+
# If the commit is tagged with a version (e.g. "v1.0.0"),
30+
# release the app after building
31+
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
32+
33+
# Maybe this works
34+
args: "--config electron-builder.config.js"

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,16 @@ node_modules
55
web-ext-artifacts
66
*.zip
77
old-src
8+
build
89

910
\#*
1011
.vscode
1112
test/
1213
old/
14+
desktop-old/
1315

1416
*.sublime-workspace
1517
.vscode
18+
reference-*
19+
20+
*.tgz

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
First and foremost, thanks a lot for the interest in contributing to this little project. We really appreciate that.
44

5-
Your first stop is the [development documentation](https://patchfox.org/development). It will explain how the source-code is organised, and how _packages_ — the fundamental module unit of Patchfox — work.
5+
Your first stop is the [development documentation](https://patchfox.org/index.html#/development). It will explain how the source code is organised, and how _packages_ — the fundamental module unit of Patchfox — work.
66

77
The [issue tracker](https://github.com/soapdog/patchfox/issues) lists all fixes and enhancements that are currently on track. Feel free to browse them and reach out if you'd like to help with any specific issue. Also, don't be discouraged from playing with the code and working on something that is not on the issue list.
88

README.md

Lines changed: 15 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
# Patchfox
2-
This is a new client for [Secure Scuttlebutt](http://scuttlebutt.nz) packaged as a Web Extension. This is a new client for [Secure Scuttlebutt](http://scuttlebutt.nz) packaged as a Web Extension for Firefox. It is available on:
32

4-
* [Firefox Add-ons Portal](https://addons.mozilla.org/en-US/firefox/addon/patchfox/)
5-
* [Chrome Web Store](https://chrome.google.com/webstore/detail/patchfox/ocanekmedfooidiahhelofknmpobdmdp?hl=en-GB&authuser=0)
3+
[![Build/release](https://github.com/soapdog/patchfox/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/soapdog/patchfox/actions/workflows/build.yml)
64

7-
So if you just want to run it, that's the easiest way. Read on if you want to develop with it. Read on if you want to develop with it.
5+
This is a client for [Secure Scuttlebutt](http://scuttlebutt.nz). It is available on:
86

9-
## Requirements
7+
* [Patchfox website](https://patchfox.org)
8+
* [Github release pages](https://github.com/soapdog/patchfox/releases)
109

11-
* [Firefox Developer Edition](https://www.mozilla.org/en-US/firefox/developer/) or [Firefox Nightly](https://www.mozilla.org/en-US/firefox/nightly/) (needed so that you can sideload unsigned add-ons)
12-
* [Scuttle Shell](https://github.com/ssbc/scuttle-shell). This is a soft requirement. You can use your own _sbot_ or even have another client such as [Patchwork](http://github.com/ssbc/patchwork) or [Patchbay](http://github.com/ssbc/patchbay) running and providing a running _sbot_.
10+
## Patchfox has a rich set of documentation
1311

12+
Head over to the [Patchfox website](https://patchfox.org) for the documentation.
13+
14+
## Requirements for development
15+
16+
* [NodeJS](https://nodejs.org)
1417

1518
## Setup & Building
1619

17-
Patchfox uses [Svelte](https://svelte.technology) and requires [NodeJS](https://nodejs.org) for development. After you have NodeJS installed, you can install the dependencies with:
20+
Patchfox uses [Mithril](https://mithril.js.org), [Electron](https://electronjs.org) and requires [NodeJS](https://nodejs.org) for development. After you have NodeJS installed, you can install the dependencies with:
1821

1922
```
2023
$ npm install
2124
```
2225

23-
And build the add-on with:
26+
And run a development version of the app using:
2427

2528
```
26-
$ npm run clean-build
29+
$ npm run start
2730
```
2831

29-
If you use:
32+
To build use:
3033

3134
```
32-
$ npm run clean-dev
35+
$ npm run build
3336
```
3437

35-
It will build the add-on using sourcemaps which makes debugging easier but can't be submit to AMO because they limit bundles to 4mb.
36-
37-
## Running
38-
39-
Go to [about:debugging](about:debugging) on Firefox, select `this firefox` and click to add a temporary add-on. Select the `manifest.json` file from the `dist/` folder from this repository.
4038

4139
## Setup inside Patchfox
4240

@@ -54,9 +52,6 @@ After installing and configuring patchfox, try browsing to:
5452

5553
If you're interested in learning more about the technologies behind this add-on, check out:
5654

57-
* [MDN Web Docs - WebExtensions](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/).
58-
* [Native Messaging API](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging)
59-
* [Native Messaging setup](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Native_messaging#Setup)
6055
* [Secure Scuttlebutt Protocol Guide](https://ssbc.github.io/scuttlebutt-protocol-guide/)
6156

6257
Don't hesitate to reach out to me at:
@@ -69,11 +64,9 @@ Don't hesitate to reach out to me at:
6964

7065
Do you want a decentralized internet too? Are you worried about the loss of net neutrality and realized that radical decentralization is the way to fight back? If you want to make a financial contribution to help me fund development of this and other dex focused software, I would love to receive contributions through these channels:
7166

72-
7367
* [Buy Me A Coffee (preferred)](https://ko-fi.com/andreshouldbewriting)
7468
* [Patchfox Open Collective](https://opencollective.com/patchfox)
7569

76-
7770
# Artwork attribution
7871

7972
Patchfox is using artwork by many artists including:
@@ -84,12 +77,6 @@ Patchfox is using artwork by many artists including:
8477

8578
* Artwork for the 2020.2.1 release poster was done by: Photo by Krista Stucchio on Unsplash
8679

87-
# Third party vendored libraries
88-
89-
* Keymage 1.1.3: http://github.com/piranha/keymage
90-
* ssb-custom-uri: https://git.sr.ht/~soapdog/ssb-custom-uri
91-
* browser-polyfill: https://github.com/mozilla/webextension-polyfill
92-
9380
# Dependencies Licenses
9481

9582
Check [licenses.html](licenses.html)

0 commit comments

Comments
 (0)