herdr-remote-relay 0.3.25 → 0.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/dist/protocol/index.d.ts +1 -0
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/release.d.ts +8 -0
- package/dist/protocol/release.js +17 -0
- package/package.json +1 -1
- package/web/dist/assets/index-BeveQ9Di.js +61 -0
- package/web/dist/index.html +1 -1
- package/web/dist/assets/index-k4NH1O2l.js +0 -61
package/README.md
CHANGED
|
@@ -11,10 +11,12 @@ Brokers WebSocket connections between browsers and workstation host connectors.
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -g herdr-remote-relay
|
|
14
|
+
npm install -g https://github.com/dibin666/herdr-remote/releases/latest/download/herdr-remote-relay.tgz
|
|
15
15
|
herdr-remote-relay --public-url https://herdr.example.com --password <password>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
From npm instead: `npm install -g herdr-remote-relay` (it can lag a new release by a while).
|
|
19
|
+
|
|
18
20
|
Requirements: Node.js 22+, TLS reverse proxy (nginx, Caddy, Cloudflare Tunnel).
|
|
19
21
|
|
|
20
22
|
## Docker
|
package/README.zh-CN.md
CHANGED
|
@@ -11,10 +11,12 @@
|
|
|
11
11
|
## 安装
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npm install -g herdr-remote-relay
|
|
14
|
+
npm install -g https://github.com/dibin666/herdr-remote/releases/latest/download/herdr-remote-relay.tgz
|
|
15
15
|
herdr-remote-relay --public-url https://herdr.example.com --password <密码>
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
+
也可从 npm 安装:`npm install -g herdr-remote-relay`(新版本上线后 npm 可能要过一段时间才同步)。
|
|
19
|
+
|
|
18
20
|
前置要求:Node.js 22+、TLS 反向代理(nginx、Caddy、Cloudflare Tunnel 等)。
|
|
19
21
|
|
|
20
22
|
## Docker 运行
|
package/dist/protocol/index.d.ts
CHANGED
package/dist/protocol/index.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Also the name an update check reports as its source. */
|
|
2
|
+
export declare const GITHUB_RELEASES_URL = "https://github.com/dibin666/herdr-remote/releases";
|
|
3
|
+
/** `{ schema, version, tag, relayVersion, tarball }`, attached to every release. */
|
|
4
|
+
export declare const LATEST_RELEASE_MANIFEST_URL = "https://github.com/dibin666/herdr-remote/releases/latest/download/latest.json";
|
|
5
|
+
/** The newest self-contained CLI tarball, for a workstation that cannot say which it needs. */
|
|
6
|
+
export declare const LATEST_CLI_TARBALL_URL = "https://github.com/dibin666/herdr-remote/releases/latest/download/herdr-remote.tgz";
|
|
7
|
+
/** One CLI release's self-contained tarball; it bundles the relay it was released with. */
|
|
8
|
+
export declare function cliTarballUrl(version: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Where herdr-remote is released. The CLI updates from here and the browser
|
|
2
|
+
// shows the same addresses in its manual steps, so there is one definition.
|
|
3
|
+
//
|
|
4
|
+
// GitHub Releases is the primary channel: a release is downloadable the moment
|
|
5
|
+
// it is created, whereas npm can take many minutes after `npm publish` before
|
|
6
|
+
// a new version installs. npm carries the same tarballs as a fallback.
|
|
7
|
+
const RELEASE_REPOSITORY = 'dibin666/herdr-remote';
|
|
8
|
+
/** Also the name an update check reports as its source. */
|
|
9
|
+
export const GITHUB_RELEASES_URL = `https://github.com/${RELEASE_REPOSITORY}/releases`;
|
|
10
|
+
/** `{ schema, version, tag, relayVersion, tarball }`, attached to every release. */
|
|
11
|
+
export const LATEST_RELEASE_MANIFEST_URL = `${GITHUB_RELEASES_URL}/latest/download/latest.json`;
|
|
12
|
+
/** The newest self-contained CLI tarball, for a workstation that cannot say which it needs. */
|
|
13
|
+
export const LATEST_CLI_TARBALL_URL = `${GITHUB_RELEASES_URL}/latest/download/herdr-remote.tgz`;
|
|
14
|
+
/** One CLI release's self-contained tarball; it bundles the relay it was released with. */
|
|
15
|
+
export function cliTarballUrl(version) {
|
|
16
|
+
return `${GITHUB_RELEASES_URL}/download/herdr-remote-v${version}/herdr-remote-${version}.tgz`;
|
|
17
|
+
}
|