Add files via upload

This commit is contained in:
Taylor Stapleton
2026-07-21 21:42:43 -06:00
committed by GitHub
parent ee92250b5f
commit 03afae2cd6
2 changed files with 27 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
@echo off
cd .devtools
node ./UpdateVersion.js
+24
View File
@@ -0,0 +1,24 @@
const fs = require("node:fs");
const path = require("node:path");
const CurrentDate = new Date();
function ZeroPadding(input) {
if (input.toString().length == 1) {
return `0${input}`;
}
return input;
}
const DateVersion = `${CurrentDate.getFullYear()}/${ZeroPadding(CurrentDate.getMonth() + 1)}/${ZeroPadding(
CurrentDate.getDate()
)}-${ZeroPadding(CurrentDate.getHours())}:${ZeroPadding(CurrentDate.getMinutes())}`;
const BetterCompatibilityCheckerConfig = {
projectID: 58139301,
modpackName: "smclt",
modpackVersion: DateVersion,
useMetadata: false,
};
fs.writeFileSync(path.relative(process.cwd(), "../config/bcc.json"), JSON.stringify(BetterCompatibilityCheckerConfig));