优化windows下系统弹窗在高分屏下的显示,修复多处bug,去掉showsystemselectlist接口,调整runSharp接口,支持传参

This commit is contained in:
fofolee
2025-01-13 18:04:29 +08:00
parent 0a8c24374a
commit 877d13958a
6 changed files with 954 additions and 634 deletions

View File

@@ -10,12 +10,14 @@ const getQuickcommandTempFile = (ext, name, dir = "quickcommandTempDir") => {
};
const getQuickcommandFolderFile = (name, ext) => {
const quickcommandPath = path.join(
const folderPath = path.join(
window.utools.getPath("userData"),
"quickcommand"
);
if (!fs.existsSync(quickcommandPath)) fs.mkdirSync(quickcommandPath);
return path.join(quickcommandPath, `${name}.${ext}`);
if (!fs.existsSync(folderPath)) {
fs.mkdirSync(folderPath, { recursive: true });
}
return path.join(folderPath, `${name}.${ext}`);
};
module.exports = { getQuickcommandTempFile, getQuickcommandFolderFile };