CH-J Server Manager透過 SSH 管理伺服器
選單
已發布的原始碼

CH-J Server Manager

瀏覽特定應用程式版本的目錄與檔案。

下載原始碼 ZIP
CH-J / Server Manager 196 個檔案
core-20261013T133631Z-faa4ab45100e 新增時間: 未記錄日期 · 建置時間:
stampBuild.js 新增時間: 未記錄日期 779 B · 17 行
程式碼 下載檔案
1"use strict";
3const crypto = require("node:crypto");
4const fs = require("node:fs");
5const path = require("node:path");
7const builtAt = new Date().toISOString();
8const compactTime = builtAt.replace(/[-:]/g, "").replace(/\.\d{3}Z$/, "Z");
9const generatedId = `core-${compactTime}-${crypto.randomBytes(6).toString("hex")}`;
10const buildId = String(process.env.CHJ_BUILD_ID || generatedId).trim();
11if (!/^[A-Za-z0-9][A-Za-z0-9._-]{7,127}$/.test(buildId)) {
12 throw new Error("CHJ_BUILD_ID must contain 8-128 safe identifier characters.");
15const target = path.join(__dirname, "..", "src", "shared", "buildInfo.json");
16fs.writeFileSync(target, `${JSON.stringify({ buildId, builtAt }, null, 2)}\n`, { mode: 0o600 });
17process.stdout.write(`Stamped build ${buildId} (${builtAt})\n`);
SHA-2566862c726e55b34c37d0470fecd831bdb81b6a59663b5efad9acc88284499783a

CH-J Proprietary Software License 1.14 · 原始碼依 CH-J Proprietary Software License 1.14 提供。公開原始碼不會改變授權條款,也不會授予額外的權利。

壓縮檔 SHA-256de757268dbc4f0226549f8b4f41f9b7e585c856ee97fa0d43b17a0e95c281449
檔案