CH-J Server Managerquản lý máy chủ qua SSH
Menu
Mã nguồn đã công bố

CH-J Server Manager

Duyệt thư mục và tệp của một bản phát hành ứng dụng cụ thể.

Tải mã nguồn dạng ZIP
CH-J / Server Manager 339 tệp
core-20261014T184258Z-3fbed0b93fdf Ngày thêm: Chưa ghi nhận ngày · Ngày dựng:
stampBuild.js Ngày thêm: Chưa ghi nhận ngày 779 B · 17 dòng
Mã Tải tệp xuống
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 · Mã nguồn được cung cấp theo CH-J Proprietary Software License 1.14. Việc công khai mã nguồn không thay đổi các điều khoản giấy phép và không cấp thêm quyền nào.

SHA-256 của tệp nén3df08cf5e899262a6ce92d7ec2caf5c42b683f1f2b57055662b845ff7dde67a8
Tệp