Skip to content

Commit 77c6391

Browse files
authored
chore: remove mentions of hc-launch from docs; instruct to remove in 0.6 upgrade guide (#621)
* chore: remove mentions of hc-launch from docs; instruct to remove in 0.6 upgrade guide * fix: correct where hc-spin comes from * chore: improve language about hc-spin
1 parent 166df83 commit 77c6391

File tree

8 files changed

+11
-31
lines changed

8 files changed

+11
-31
lines changed

src/pages/build/connecting-a-front-end.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This interface is **only exposed to processes on the local device**, not to exte
1414

1515
Some Holochain runtimes bundle the conductor and a front end host that serves your HTML/JavaScript-based runtimes. Take a look at the [Packaging and Distribution](/get-started/4-packaging-and-distribution/) page from the Get Started guide for the choices.
1616

17-
The Holonix dev environment comes with a runtime called `hc-launch`, which starts Holochain, installs your hApp, and displays a UI for you. The scaffolding tool generates an NPM script that compiles and bundles your back end into a [`.happ` file](/build/happs/#package-a-happ-for-distribution) and starts two instances of the hApp with `hc-launch`. In the root of your project folder, enter:
17+
Scaffolded hApps come with a runtime called `hc-spin`, which starts a Holochain conductor, installs your hApp into it, and displays a UI for you. The scaffolding tool generates an NPM script that compiles and bundles your back end into a [`.happ` file](/build/happs/#package-a-happ-for-distribution) and starts two instances of the hApp with `hc-spin`. In the root of your project folder, enter:
1818

1919
```bash
2020
npm run start

src/pages/get-started/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ For Windows users, please note that the Nix package manager, which is used to in
4242

4343
Holochain is supported in WSL2 via the Ubuntu distribution.
4444

45-
You'll also need to install a few packages if you want to run two dev tools, `hc spin` and `hc launch`, which start your app's back end and open its GUI in Electron or Tauri webviews:
45+
You'll also need to install a few packages if you want to run a dev tool, `hc spin`, which starts your app's back end and opens its GUI in an Electron webview:
4646

4747
```shell
48-
sudo apt install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgtk-3-dev libasound2t64 adwaita-icon-theme
48+
sudo apt install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgtk-3-dev libasound2t64
4949
```
5050

5151
Read more about these fixes in the [Dev Tools Setup guide](/get-started/install-advanced/#opening-your-happs-gui-in-ubuntu-on-wsl2).

src/pages/get-started/install-advanced.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ This command displays versioning information about Holochain's main components.
7272
::: output-block
7373
```text
7474
hc-scaffold : holochain_scaffolding_cli 0.600.0 (2d71d47)
75-
hc-launch : holochain_cli_launch 0.600.0 (holochain 0.6.0) (b19fe6b)
7675
Lair keystore : lair_keystore 0.6.3 (8aa9ab1)
7776
Kitsune2 bootstrap srv : kitsune2_bootstrap_srv 0.3.2 (22de6e4)
7877
Holochain CLI : holochain_cli 0.6.0 (a6d4e80)
@@ -130,7 +129,7 @@ The full suite of Nix tooling is broad and deep. There's even a dedicated progra
130129

131130
## Fixing the SUID sandbox error in Ubuntu 24.04 and later
132131

133-
Ubuntu 24.04 [introduced an AppArmor security policy](https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions-15) that causes `hc spin`, which is used to test applications and their UIs, to fail with a fatal error. If you have a `package.json` that lists `@holochain/hc-spin` as a dev dependency, you may see this error message:
132+
Ubuntu 24.04 [introduced an AppArmor security policy](https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions-15) that causes `hc-spin`, which is used to test applications and their UIs, to fail with a fatal error. If you try to run `hc-spin` (or `npm run start`/`npm run launch:happ` with a scaffolded hApp, which uses `hc-spin` under the hood), you may see this error message:
134133

135134
::: output-block
136135
```
@@ -144,7 +143,7 @@ You can fix the issue by entering the following command in your project's root d
144143
sudo chown root:root node_modules/electron/dist/chrome-sandbox && sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
145144
```
146145

147-
You'll have to do this for every hApp project that uses `@holochain/hc-spin`.
146+
You'll have to do this for every hApp project that uses `hc-spin`.
148147

149148
There are other fixes [outlined in the Ubuntu 24.04 release notes](https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#p-99950-unprivileged-user-namespace-restrictions-15) that can solve the problem; if you'd like to learn more, read through them all and choose the one that feels most appropriate for you.
150149

@@ -154,15 +153,7 @@ Because the template repo `holochain-kangaroo-electron` also bundles Electron's
154153

155154
## Opening your hApp's GUI in Ubuntu on WSL2 (Windows Subsystem for Linux) {#opening-your-happs-gui-in-ubuntu-on-wsl2}
156155

157-
There are two dev tools, `hc spin` and `hc launch`, which start your app's back end and open its GUI in [Electron](https://www.electronjs.org/) or [Tauri](https://tauri.app/) webview containers, respectively. Because the Ubuntu OS installed from the Microsoft Store doesn't come with GUI packages by default, you'll need to install just a few in order to get these tools to work.
158-
159-
If you're only using `hc launch`, which uses the Tauri webview, install this package, which resolves a GDK error about cursors:
160-
161-
```shell
162-
sudo apt install -y adwaita-icon-theme
163-
```
164-
165-
If you're only using the more modern `hc spin`, which uses the Electron webview, install these missing packages that are needed by the `chrome-sandbox` binary:
156+
There is one dev tool, `hc spin`, which starts your app's back end and opens its GUI in an [Electron](https://www.electronjs.org/) webview containers. Because the Ubuntu OS installed from the Microsoft Store doesn't come with GUI packages by default, you'll need to install just a few in order to get this tool to work:
166157

167158
```shell
168159
sudo apt install -y libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgtk-3-dev libasound2t64

src/pages/get-started/install-without-nix.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,5 @@ cargo install --force holochain_cli
5656
cargo install --force lair_keystore
5757
```
5858
```shell
59-
cargo install --force holochain_cli_launch
60-
```
61-
```shell
6259
cargo install --force holochain_scaffolding_cli
6360
```

src/pages/resources/compatibility/holochain-0.6.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ For more information on versioning and compatibility, see our [general guidance]
1818
| [`hc` CLI](https://crates.io/crates/holochain_cli) | [0.6.0](https://crates.io/crates/holochain_cli/0.6.0) |
1919
| [`hc-scaffold` CLI](https://github.com/holochain/scaffolding) | [0.600.0](https://crates.io/crates/holochain_scaffolding_cli/0.600.0) |
2020
| [`hc-spin` CLI](https://github.com/holochain/hc-spin) | [0.600.0](https://github.com/holochain/hc-spin/releases/tag/v0.600.0) |
21-
| [`hc-launch` CLI](https://github.com/holochain/hc-launch) | 0.600.0, available via [Holonix](/get-started/install-advanced/) |
2221
| [`hcterm` CLI](https://github.com/holochain/holochain/tree/develop/crates/holochain_terminal) | [0.6.0](https://crates.io/crates/hcterm/0.6.0) |
2322
| [Holochain playground](https://github.com/darksoil-studio/holochain-playground) | 0.600.0, available via [Holonix](/get-started/install-advanced/) |
2423
| [Kitsune2 bootstrap server](https://github.com/holochain/kitsune2/tree/main/crates/bootstrap_srv) | [0.3.2](https://github.com/holochain/kitsune2/pkgs/container/kitsune2_bootstrap_srv/579735204?tag=v0.3.2) |

src/pages/resources/compatibility/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ We use [SemVer](https://semver.org/) to indicate component version compatibility
1818
* When we talk about Holochain versions in general, we're referring to the [`holochain` core library](https://github.com/holochain/holochain). Its most significant number is the reference point for the rest of the components' compatibility, and the versions of the conductor binary, [`hc` CLI](https://github.com/holochain/holochain/tree/develop/crates/hc), and [`hcterm` CLI](https://github.com/holochain/holochain/tree/develop/crates/holochain_terminal) follow it.
1919
* Compatible [`hdk`](https://crates.io/crates/hdk/) library versions share a most significant number with the core library.
2020
* The [`hdi`](https://crates.io/crates/hdi/) library's most significant number is one higher than the core library (e.g., for `holochain` 0.6, compatible `hdi` versions are 0.7.x).
21-
* From Holochain 0.5 onwards, the most significant number of the [scaffolding](https://github.com/holochain/scaffolding/), [`hc-spin`](https://github.com/holochain/hc-spin), [playground](https://github.com/darksoil-studio/holochain-playground), and [`hc-launch`](https://github.com/holochain/hc-launch) CLI tools is the same as that of the core library, but multiplied by 100. For instance, for Holochain 0.6, use version 0.600.x of these tools.
21+
* From Holochain 0.5 onwards, the most significant number of the [scaffolding](https://github.com/holochain/scaffolding/), [`hc-spin`](https://github.com/holochain/hc-spin), and [playground](https://github.com/darksoil-studio/holochain-playground) CLI tools is the same as that of the core library, but multiplied by 100. For instance, for Holochain 0.6, use version 0.600.x of these tools.
2222
* The [lair keystore](https://github.com/holochain/lair), [Kitsune2 bootstrap server](https://github.com/holochain/kitsune2/tree/main/crates/bootstrap_srv), [Rust](https://github.com/holochain/holochain/tree/main/crates/client) and [JavaScript](https://github.com/holochain/holochain-client-js) clients, [Tryorama library](https://github.com/holochain/tryorama), and [`kangaroo-electron` app template repo](https://github.com/holochain/kangaroo-electron) have their own version number sequences, but almost always advance by one for every new Holochain release series. For example, if JavaScript client 0.19.x is compatible with Holochain 0.5, then JavaScript client 0.20.x will be compatible with Holochain 0.6.
2323

2424
To check the versions you're currently using in a scaffolded project, use the [`hn-introspect`](/get-started/install-advanced/#holonix-inspection-commands) command from within your project's Nix dev shell.

src/pages/resources/howtos/running-network-infrastructure.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,6 @@ If you use the same server for production and testing, you might end up writing
142142
- "launch:happ": "hc-spin -n $AGENTS --ui-port $UI_PORT workdir/my_app.happ",
143143
+ // Use bootstrap server
144144
+ "launch:happ": "hc-spin -n $AGENTS --ui-port $UI_PORT --bootstrap-url \"https://bootstrap.example.org\" --signaling-url \"wss://bootstrap.example.org\" --network-seed \"bootstrap-testing-network-only\" workdir/my_app.happ",
145-
// If you use the Tauri-based launcher, you can also make the following
146-
// edits.
147-
- "start:tauri": "AGENTS=${AGENTS:-2} BOOTSTRAP_PORT=$(get-port) npm run network:tauri",
148-
+ "start:tauri": "AGENTS=${AGENTS:-2} npm run network:tauri",
149-
"network:tauri": "hc sandbox clean && npm run build:happ && UI_PORT=$(get-port) concurrently \"npm run start --workspace ui\" \"npm run launch:tauri\" \"hc playground\"",
150-
- "launch:tauri": "concurrently \"kitsune2-bootstrap-srv --listen \"127.0.0.1:$BOOTSTRAP_PORT\"\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/my_app.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$BOOTSTRAP_PORT\"\"",
151-
+ "launch:tauri": "echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/my_app.happ --ui-port $UI_PORT --network-seed \"bootstrap-testing-network-only\" network --bootstrap \"https://bootstrap.example.org\" webrtc \"wss://bootstrap.example.org\"",
152145
"package": "npm run build:happ && npm run package --workspace ui && hc web-app pack workdir --recursive",
153146
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
154147
"build:zomes": "RUSTFLAGS='--cfg getrandom_backend=\"custom\"' cargo build --release --target wasm32-unknown-unknown"

src/pages/resources/upgrade/upgrade-holochain-0.6.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ To upgrade your hApp written for Holochain 0.5, follow these steps:
5050
```shell
5151
nix flake update && git add flake.* && nix develop
5252
```
53-
2. Update your root `package.json` file with the new package versions, and update the `build:zomes` script to accommodate a change in the way one of the HDK's dependencies needs to be built: <!-- TODO: get the right version numbers --> {#update-package-json}
53+
2. Update your root `package.json` file with the new package versions, remove the deprecated `*:tauri` scripts, and update the `build:zomes` script to accommodate a change in the way one of the HDK's dependencies needs to be built: <!-- TODO: get the right version numbers --> {#update-package-json}
5454

5555
```diff:json
5656
{
@@ -65,9 +65,9 @@ To upgrade your hApp written for Holochain 0.5, follow these steps:
6565
"network": "hc sandbox clean && npm run build:happ && UI_PORT=$(get-port) concurrently \"npm run start --workspace ui\" \"npm run launch:happ\" \"hc playground\"",
6666
"test": "npm run build:zomes && hc app pack workdir --recursive && npm run test --workspace tests",
6767
"launch:happ": "hc-spin -n $AGENTS --ui-port $UI_PORT workdir/movies5.happ",
68-
"start:tauri": "AGENTS=${AGENTS:-2} BOOTSTRAP_PORT=$(get-port) npm run network:tauri",
69-
"network:tauri": "hc sandbox clean && npm run build:happ && UI_PORT=$(get-port) concurrently \"npm run start --workspace ui\" \"npm run launch:tauri\" \"hc playground\"",
70-
"launch:tauri": "concurrently \"kitsune2-bootstrap-srv --listen \"127.0.0.1:$BOOTSTRAP_PORT\"\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/movies5.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$BOOTSTRAP_PORT\"\"",
68+
- "start:tauri": "AGENTS=${AGENTS:-2} BOOTSTRAP_PORT=$(get-port) npm run network:tauri",
69+
- "network:tauri": "hc sandbox clean && npm run build:happ && UI_PORT=$(get-port) concurrently \"npm run start --workspace ui\" \"npm run launch:tauri\" \"hc playground\"",
70+
- "launch:tauri": "concurrently \"kitsune2-bootstrap-srv --listen \"127.0.0.1:$BOOTSTRAP_PORT\"\" \"echo pass | RUST_LOG=warn hc launch --piped -n $AGENTS workdir/movies5.happ --ui-port $UI_PORT network --bootstrap http://127.0.0.1:\"$BOOTSTRAP_PORT\" webrtc ws://127.0.0.1:\"$BOOTSTRAP_PORT\"\"",
7171
"package": "npm run build:happ && npm run package --workspace ui && hc web-app pack workdir --recursive",
7272
"build:happ": "npm run build:zomes && hc app pack workdir --recursive",
7373
- "build:zomes": "cargo build --release --target wasm32-unknown-unknown"

0 commit comments

Comments
 (0)