重命名工具

This commit is contained in:
yinsx
2025-12-20 13:06:32 +08:00
parent 16ae511f21
commit 3098796a08
5 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ import path from "path";
import { fileURLToPath } from "url"; import { fileURLToPath } from "url";
const __dirname = path.dirname(fileURLToPath(import.meta.url)); const __dirname = path.dirname(fileURLToPath(import.meta.url));
const ASSIMP_PATH = path.join(__dirname, "../../bin/assimp.exe"); const ASSIMP_PATH = path.join(__dirname, "../../bin/model_converter.exe");
let importExts = null; let importExts = null;
let exportFormats = null; let exportFormats = null;

View File

@ -6,12 +6,12 @@ import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
const toktx = path.join(__dirname, "..", "..", "bin", "toktx.exe"); const toktx = path.join(__dirname, "..", "..", "bin", "texture_tool.exe");
// 检查 toktx 是否存在 // 检查 toktx 是否存在
export function checkToktx() { export function checkToktx() {
if (!fs.existsSync(toktx)) { if (!fs.existsSync(toktx)) {
console.error("❌ 找不到 toktx.exe"); console.error("❌ 找不到 texture_tool.exe");
process.exit(1); process.exit(1);
} }
} }

View File

@ -18,7 +18,7 @@ let titleConfig = {
}; };
const tools = [ const tools = [
{ name: "格式转换", desc: "OBJ/FBX转glTF", module: "./lib/convert/index.js" }, { name: "格式转换", desc: "支持多种模型格式转换", module: "./lib/convert/index.js" },
{ name: "KTX2 纹理压缩", desc: "图片转KTX2格式", module: "./lib/ktx2/index.js" }, { name: "KTX2 纹理压缩", desc: "图片转KTX2格式", module: "./lib/ktx2/index.js" },
{ name: "glTF扩展", desc: "添加KHR_texture_basisu", module: "./lib/gltf/index.js" }, { name: "glTF扩展", desc: "添加KHR_texture_basisu", module: "./lib/gltf/index.js" },
{ name: "模型压缩", desc: "压缩glTF/GLB模型", module: "./lib/model/index.js" }, { name: "模型压缩", desc: "压缩glTF/GLB模型", module: "./lib/model/index.js" },