Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 74b74c7

Browse files
Merge branch 'master' of github.com:ssbc/patchwork
2 parents 67f1eea + 95cced7 commit 74b74c7

File tree

2 files changed

+75
-7
lines changed

2 files changed

+75
-7
lines changed

docs/INSTALL.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,49 @@ following command line options.
8383

8484
On Windows, please make sure to add -- before options. For example,
8585
`C:\Users\YourUser\AppData\Local\Programs\ssb-patchwork\Patchwork.exe -- --proxy-server=....`
86+
87+
## Start
88+
89+
### npm
90+
91+
```shell
92+
npm start
93+
```
94+
95+
### Yarn
96+
97+
```shell
98+
yarn start
99+
```
100+
101+
## Sandbox
102+
103+
Some Linux users may see an error like this:
104+
105+
> The SUID sandbox helper binary was found, but is not configured correctly.
106+
> Rather than run without sandboxing I'm aborting now. You need to make sure
107+
> that node_modules/electron/dist/chrome-sandbox is owned by root and has mode
108+
> 4755.
109+
110+
You have three options, pick the one that you think sucks the least:
111+
112+
1. Change your kernel settings: `sudo sysctl kernel.unprivileged_userns_clone=1`
113+
2. Follow the instructions and change the file's owner to root
114+
- `sudo chown root node_modules/electron/dist/chrome-sandbox`
115+
- `sudo chmod 4755 node_modules/electron/dist/chrome-sandbox`
116+
3. Disable the sandbox with either:
117+
- `npm start -- --no-sandbox`, or
118+
- `yarn start -- --no-sandbox`
119+
120+
See also:
121+
122+
- https://github.com/electron/electron/issues/17972
123+
- https://github.com/electron-userland/electron-builder/issues/3872
124+
125+
### AppImage
126+
127+
Note that the `chown` and `chmod` solution doesn't work with AppImages, but you can launch the AppImage with the `--no-sandbox` flag appended to the command.
128+
129+
You can permanently patch the AppImage to add `--no-sandbox`, but that change is experimental and requires some [extra steps][appimage-fix].
130+
131+
[appimage-fix]: https://github.com/ssbc/patchwork/issues/1217#issuecomment-559609983

docs/release-notes-template.md

Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,29 @@
22

33
## Install
44

5-
- **Windows:** [`Patchwork-Setup-$$VERSION.exe`][exe]
6-
- **macOS:** [`Patchwork-$$VERSION.dmg`][dmg]
7-
- You must [allow apps from "unidentified" developers](https://support.apple.com/kb/PH25088).
8-
- **Linux:** [`Patchwork-$$VERSION.AppImage`][appimage]
9-
- You must [make it executable](https://docs.appimage.org/user-guide/run-appimages.html): `chmod +x Patchwork-$$VERSION.AppImage`
10-
- You may need to [fix the sandbox](https://github.com/electron/electron/issues/17972): `sudo sysctl kernel.unprivileged_userns_clone=1`
5+
Use [your favorite package manager](https://github.com/ssbc/patchwork#installation) or install manually.
6+
7+
### Windows
8+
9+
**[`Patchwork-Setup-$$VERSION.exe`][exe]**
10+
11+
### macOS
12+
13+
**[`Patchwork-$$VERSION.dmg`][dmg]**
14+
15+
You must [allow apps from "unidentified" developers](https://support.apple.com/kb/PH25088).
16+
17+
### Linux
18+
19+
**[`Patchwork-$$VERSION.AppImage`][appimage]**
20+
21+
You may need to [fix the sandbox](https://github.com/ssbc/patchwork/blob/master/docs/INSTALL.md#sandbox).
22+
23+
There are also releases for Debian and Snapcraft:
24+
25+
- **Debian:** [`ssb-patchwork_$$VERSION_amd64.deb`][deb]
26+
- **Snapcraft:** [`ssb-patchwork_$$VERSION_amd64.snap`][snap]
27+
- You must install with `snap install --dangerous` because it's unsigned.
1128

1229
## Getting started
1330

@@ -23,6 +40,11 @@ $$CHANGES
2340
2441
:sos: [Need help? Please create an issue!](https://github.com/ssbc/patchwork/issues/new)
2542
43+
[appimage]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/Patchwork-$$VERSION.AppImage
2644
[dmg]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/Patchwork-$$VERSION.dmg
45+
[deb]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/ssb-patchwork_$$VERSION.dmg
46+
[snap]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/ssb-patchwork_$$VERSION.snap
2747
[exe]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/Patchwork-Setup-$$VERSION.exe
28-
[appimage]: https://github.com/ssbc/patchwork/releases/download/v$$VERSION/Patchwork-$$VERSION.AppImage
48+
[npm]: https://npmjs.org/
49+
[yarn]: https://yarnpkg.com/en/
50+
[yay]: https://github.com/Jguer/yay

0 commit comments

Comments
 (0)