Merge branch 'main' into main

This commit is contained in:
纹波 2025-12-15 23:07:53 +08:00 committed by GitHub
commit 498a35b6f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 60 additions and 52 deletions

View file

@ -1,10 +1,11 @@
import { exec } from "node:child_process";
import { readFile } from "node:fs";
import { version } from "../../package.json";
console.log(`ConvertX v${version}`);
if (process.env.NODE_ENV === "production") {
exec("cat /etc/os-release", (error, stdout) => {
readFile("/etc/os-release", "utf8", (error, stdout) => {
if (error) {
console.error("Not running on docker, this is not supported.");
}