This commit is contained in:
MakerYang
2024-08-06 18:30:21 +08:00
parent f363be1fc8
commit a902dd3de7
1870 changed files with 496402 additions and 6524 deletions

View File

@@ -0,0 +1,25 @@
import * as FileAPI from "fs";
import PathAPI from "path";
FileAPI.writeFileSync("release/.gitkeep", "");
const Index = FileAPI.readFileSync("release/dist/template/index.html", {encoding: "utf8"});
const NewIndex = Index.replace(/.\/monacoeditorwork/g, '"monacoeditorwork');
FileAPI.writeFileSync("release/dist/template/index.html", NewIndex);
const icons = FileAPI.readdirSync("tools/icons", {withFileTypes: true});
FileAPI.mkdirSync("release/dist/icons", {recursive: true});
for (let item of icons) {
let srcPath = PathAPI.join("tools/icons", item.name);
let destPath = PathAPI.join("release/dist/icons", item.name);
FileAPI.copyFileSync(srcPath, destPath);
}
FileAPI.mkdirSync("release/dist/software", {recursive: true});
const nets = FileAPI.readdirSync("tools/software", {withFileTypes: true});
for (let item of nets) {
let srcPath = PathAPI.join("tools/software", item.name);
let destPath = PathAPI.join("release/dist/software", item.name);
FileAPI.copyFileSync(srcPath, destPath);
}