重命名工具

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

@ -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);
}
}