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 --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 --branch %eNFBTxGjgxmiQMzNUnHrQqXuBmZ8lwdwlnCbvSG8Rb0=.sha256 |
| 85 … | +ssb-npm install --production --branch %Et6Ij2bOS4SUzpimKTVUdMPnb8vjP8Lg2dObBJ/0oGE=.sha256 |
86 | 86 … | npm start |
87 | 87 … | ``` |
88 | 88 … | |
89 | 89 … | #### as a ssb-server plugin |
93 | 93 … | ```sh |
94 | 94 … | cd ~/.ssb/node_modules |
95 | 95 … | git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo |
96 | 96 … | cd patchfoo |
97 | | -ssb-npm install --production --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 --branch %eNFBTxGjgxmiQMzNUnHrQqXuBmZ8lwdwlnCbvSG8Rb0=.sha256 |
| 97 … | +ssb-npm install --production --branch %Et6Ij2bOS4SUzpimKTVUdMPnb8vjP8Lg2dObBJ/0oGE=.sha256 |
98 | 98 … | node enable-plugin.js |
99 | 99 … | ``` |
100 | 100 … | |
101 | 101 … | ### Install via ssb-npm |
117 | 117 … | |
118 | 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. |
119 | 119 … | |
120 | 120 … | ```sh |
121 | | -ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 --branch %eNFBTxGjgxmiQMzNUnHrQqXuBmZ8lwdwlnCbvSG8Rb0=.sha256 |
| 121 … | +ssb-npm install -g patchfoo --branch %Et6Ij2bOS4SUzpimKTVUdMPnb8vjP8Lg2dObBJ/0oGE=.sha256 |
122 | 122 … | ``` |
123 | 123 … | |
124 | 124 … | ### as a ssb-server plugin |
125 | 125 … | |
126 | 126 … | This does a global ssb-npm install and then symlinks it into place and installs it with ssb-server as a plugin. |
127 | 127 … | |
128 | 128 … | ```sh |
129 | | -ssb-npm install -g patchfoo --branch %HWJLkLhiapPIaWn2yBOsFIeLNwyrYdSn/Z8cDqiBBi4=.sha256 --branch %eNFBTxGjgxmiQMzNUnHrQqXuBmZ8lwdwlnCbvSG8Rb0=.sha256 |
| 129 … | +ssb-npm install -g patchfoo --branch %Et6Ij2bOS4SUzpimKTVUdMPnb8vjP8Lg2dObBJ/0oGE=.sha256 |
130 | 130 … | dir=$(dirname $(realpath $(which patchfoo))) |
131 | 131 … | ln -s "$dir" ~/.ssb/node_modules/ |
132 | 132 … | node "$dir/enable-plugin.js" |
133 | 133 … | ``` |