You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -21,14 +22,14 @@ Depending on which Holochain minor version you want to use you should use the co
21
22
1. Either use this repository as a template (by clicking on the green "Use this template" button) or fork it.
22
23
Using it as a template allows you to start with a clean git history and the contributors of this repository won't show up as contributors to your new repository. **Forking has the advantage of being able to relatively easily pull in updates from this parent repository at a later point in time.** If you fork it, it may be smart to work off a different branch than the main branch in your forked repository in order to be able to keep the main branch in sync with this parent repository and selectively merge into your working branch as needed.
23
24
24
-
2. In your local copy of the repository, run
25
+
2. In the `kangaroo.config.ts` file, replace the `appId` and `productName` fields with names appropriate for your own app.
26
+
27
+
3. In your local copy of the repository, run
25
28
26
29
```
27
30
yarn setup
28
31
```
29
32
30
-
3. In the `kangaroo.config.ts` file, replace the `appId` and `productName` fields with names appropriate for your own app.
31
-
32
33
4. Choose a version number in the `version` field of `kangaroo.config.ts`. And **Read** the section [Versioning](#Versioning) below to understand the implications.
33
34
34
35
5. Paste the `.webhapp` file of your holochain app into the `pouch` folder.
@@ -42,6 +43,18 @@ yarn dev
42
43
43
44
## Build the Distributable
44
45
46
+
> [!WARNING]
47
+
> The default bootstrap, signaling and ICE servers (used for connection establishment among peers)
48
+
> in `kangaroo.config.ts` have no availability guarantees whatsoever and are meant for testing
49
+
> purposes only.
50
+
>
51
+
> If you want to deploy your app to end-users, make sure to run your own
52
+
> instances of these servers or use servers that have guaranteed availability for the lifetime
53
+
> of your app's network(s).
54
+
>
55
+
> **Changing these URLs *after* deployment of your app can result in a network partition**.
56
+
57
+
45
58
### Build locally
46
59
47
60
To build the app locally for your platform, run the build command for your respecive platform:
@@ -60,9 +73,13 @@ yarn build:windows
60
73
61
74
The general workflow goes as follows:
62
75
63
-
1. Create a draft release on github and set its "Tag verion" to the value of the `version` field that you chose in `kangaroo.config.ts` and prefix it with `v`, for example `v0.1.0`.
76
+
1. Make sure that CI has access to your app's .webhapp file by either
77
+
- specifying the `webhapp` field in `kangaroo.config.ts` pointing to a URL where CI can fetch it and a sha256 to verify its integrity
78
+
- remove `pouch/*.webhapp` from the `.gitignore` file and commit your .webhapp to git.
79
+
80
+
2. Create a draft release on github and set its "Tag verion" to the value of the `version` field that you chose in `kangaroo.config.ts` and prefix it with `v`, for example `v0.1.0`.
64
81
65
-
2. Merge the main branch into the release branch and push it to github to trigger the release workflow.
82
+
3. Merge the main branch into the release branch and push it to github to trigger the release workflow.
66
83
67
84
If you do this for the first time you will need to create the `release` branch first:
68
85
@@ -154,7 +171,7 @@ Options:
154
171
--holochain-wasm-log <string> WASM_LOG value to pass to the holochain binary
155
172
--lair-rust-log <string> RUST_LOG value to pass to the lair keystore binary
156
173
-b, --bootstrap-url <url> URL of the bootstrap server to use (not persisted across restarts).
157
-
-s, --signaling-url <url> URL of the signaling server to use (not persisted across restarts).
174
+
-s, --signal-url <url> URL of the signaling server to use (not persisted across restarts).
158
175
--ice-urls <string> Comma separated string of ICE server URLs to use. Is ignored if an external holochain binary is being used
159
176
(not persisted across restarts).
160
177
--print-holochain-logs Print holochain logs directly to the terminal (they will be still written to the logfile as well)
0 commit comments