From 3098796a08e38661254373eceb58dec88152e0c0 Mon Sep 17 00:00:00 2001 From: yinsx Date: Sat, 20 Dec 2025 13:06:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/{assimp.exe => model_converter.exe} | Bin bin/{toktx.exe => texture_tool.exe} | Bin lib/convert/converters.js | 2 +- lib/ktx2/compressor.js | 4 ++-- lib/menu.js | 2 +- 5 files changed, 4 insertions(+), 4 deletions(-) rename bin/{assimp.exe => model_converter.exe} (100%) rename bin/{toktx.exe => texture_tool.exe} (100%) diff --git a/bin/assimp.exe b/bin/model_converter.exe similarity index 100% rename from bin/assimp.exe rename to bin/model_converter.exe diff --git a/bin/toktx.exe b/bin/texture_tool.exe similarity index 100% rename from bin/toktx.exe rename to bin/texture_tool.exe diff --git a/lib/convert/converters.js b/lib/convert/converters.js index 1c003b6..6caff0a 100644 --- a/lib/convert/converters.js +++ b/lib/convert/converters.js @@ -3,7 +3,7 @@ import path from "path"; import { fileURLToPath } from "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 exportFormats = null; diff --git a/lib/ktx2/compressor.js b/lib/ktx2/compressor.js index 87072f1..9557ec3 100644 --- a/lib/ktx2/compressor.js +++ b/lib/ktx2/compressor.js @@ -6,12 +6,12 @@ import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); -const toktx = path.join(__dirname, "..", "..", "bin", "toktx.exe"); +const toktx = path.join(__dirname, "..", "..", "bin", "texture_tool.exe"); // 检查 toktx 是否存在 export function checkToktx() { if (!fs.existsSync(toktx)) { - console.error("❌ 找不到 toktx.exe"); + console.error("❌ 找不到 texture_tool.exe"); process.exit(1); } } diff --git a/lib/menu.js b/lib/menu.js index 81b77e1..b84f9b2 100644 --- a/lib/menu.js +++ b/lib/menu.js @@ -18,7 +18,7 @@ let titleConfig = { }; 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: "glTF扩展", desc: "添加KHR_texture_basisu", module: "./lib/gltf/index.js" }, { name: "模型压缩", desc: "压缩glTF/GLB模型", module: "./lib/model/index.js" },