mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-14 22:54:32 +08:00
优化windows下系统弹窗在高分屏下的显示,修复多处bug,去掉showsystemselectlist接口,调整runSharp接口,支持传参
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user