README.mdView |
---|
81 | 81 … | |
82 | 82 … | ```sh |
83 | 83 … | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
84 | 84 … | cd patchfoo |
85 | | -ssb-npm install \ |
86 | | - --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \ |
87 | | - --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256 |
| 85 … | +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
88 | 86 … | npm start |
89 | 87 … | ``` |
90 | 88 … | |
91 | 89 … | #### as a ssb-server plugin |
92 | 90 … | |
93 | 91 … | This is the traditional way to install and run patchfoo. |
94 | 92 … | |
95 | | -Using `--production` skips installing `ssb-client`, which is not needed for plugin usage. If you want to also be able to run patchfoo as a standalone process, omit the `--production` option in the commands below, and add the extra `--branch` parameter as used above. |
96 | | - |
97 | 93 … | ```sh |
98 | 94 … | cd ~/.ssb/node_modules |
99 | 95 … | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
100 | 96 … | cd patchfoo |
101 | | -ssb-npm install --production --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 |
| 97 … | +ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
102 | 98 … | node enable-plugin.js |
103 | 99 … | ``` |
104 | 100 … | |
105 | 101 … | ### Install via ssb-npm |
121 | 117 … | |
122 | 118 … | Note: if you previously installed a patchfoo binary release, [ssb-]npm will not overwrite it. You must manually remove it (e.g. `rm ~/.local/bin/patchfoo`) before installing via ssb-npm. |
123 | 119 … | |
124 | 120 … | ```sh |
125 | | -ssb-npm install -g patchfoo \ |
126 | | - --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \ |
127 | | - --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256 |
| 121 … | +ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
128 | 122 … | ``` |
129 | 123 … | |
130 | 124 … | ### as a ssb-server plugin |
131 | 125 … | |
132 | 126 … | This does a global ssb-npm install and then symlinks it into place and installs it with ssb-server as a plugin. |
133 | 127 … | |
134 | 128 … | ```sh |
135 | | -ssb-npm install -g patchfoo --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 |
| 129 … | +ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 |
136 | 130 … | dir=$(dirname $(realpath $(which patchfoo))) |
137 | 131 … | ln -s "$dir" ~/.ssb/node_modules/ |
138 | 132 … | node "$dir/enable-plugin.js" |
139 | 133 … | ``` |