From 45c42b23f73184841b517981e1cb182ee53e4f0d Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 9 Jul 2020 19:45:22 -0400 Subject: Add message id for ssb-client for standalone install ssb-npm does not include cypherlinks for devDependencies. Since ssb-client is a devDependency, we then have to add an additional --branch parameter for it. --- README.md | 10 +++++++--- doc/install-guide.html | 9 ++++++--- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6769a85..33c9c55 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,9 @@ Running as a standalone process this way is useful if you can use git-ssb and ss ```sh git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo cd patchfoo -ssb-npm install --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 +ssb-npm install \ + --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \ + --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256 npm start ``` @@ -90,7 +92,7 @@ npm start This is the traditional way to install and run patchfoo. -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. +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. ```sh cd ~/.ssb/node_modules @@ -120,7 +122,9 @@ This installs patchfoo globally and gives you a `patchfoo` executable. 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. ```sh -ssb-npm install -g patchfoo --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 +ssb-npm install -g patchfoo \ + --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \ + --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256 ``` ### as a ssb-server plugin diff --git a/doc/install-guide.html b/doc/install-guide.html index a5dea45..04a07cf 100644 --- a/doc/install-guide.html +++ b/doc/install-guide.html @@ -42,7 +42,9 @@ ssb-npm install -g git-ssb@2.8.0 \
 git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo
 cd patchfoo
-ssb-npm install --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256
+ssb-npm install \
+  --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 \
+  --branch %FlwIBeDR/liKcEvok7uF9o3e7Qib36aMj1orj3aiFVQ=.sha256
 npm start
 
@@ -52,8 +54,9 @@ mkdir ~/.ssb/node_modules cd ~/.ssb/node_modules git clone ssb://%YAg1hicat+2GELjE2QJzDwlAWcx0ML+1sXEdsWwvdt8=.sha256 patchfoo cd patchfoo -ssb-npm install --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 -sbot plugins.enable patchfoo +ssb-npm install --production \ + --branch %e/unnFWjNwhJuFtH+DmkNqqvVggrufu/sZxRU5e59Is=.sha256 +node enable-plugin.js

Restart ssb-server or Patchwork.

Visit patchfoo at http://localhost:8027/.

-- cgit v1.2.3