CH-J ToolsSSH によるサーバー管理
メニュー
公開済みのソース

CH-J Tools

特定のアプリケーションリリースのディレクトリとファイルを閲覧できます。

ソースの ZIP をダウンロード
CH-J / Server Manager 1704 ファイル
0.1.2-beta 追加日時: · ビルド日時:
updates.ts 追加日時: 日付の記録なし 836 B · 13 行
コード ファイルをダウンロード
1/** Core updates: signed release catalog (SHA-512 + OpenPGP), download and installer hand-off. */
2import { call, subscribe } from "../transport";
3import type { Payload } from "../types";
5export const updates = Object.freeze({
6 getState: () => call<Payload>("core_updates_get_state", "updates:getState"),
7 check: () => call<Payload>("core_updates_check", "updates:check"),
8 select: (id: string) => call<Payload>("core_updates_select", "updates:select", { id }),
9 download: () => call<Payload>("core_updates_download", "updates:download"),
10 install: () => call<{ ok: true; installed: boolean; restarting: boolean }>("core_updates_install", "updates:install"),
11 reveal: () => call<{ ok: true }>("core_updates_reveal", "updates:reveal"),
12 onState: (callback: (state: Payload) => void) => subscribe("core:updateState", callback)
13});
SHA-2567778a474dd4aba30f201c6b4dbc63a28f23e5622131c200f6bb6eed54ff4315f

CH-J Proprietary Software License 1.14 · ソースは CH-J Proprietary Software License 1.14 に基づいて提供されています。公開されていても、ライセンス条項が変わったり、追加の権利が付与されたりすることはありません。

アーカイブの SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
ファイル