win mac双平台修正

This commit is contained in:
Yeomai committed 2026-09-20 23:33:36 +08:00
1 parent 07c21f5954
commit 08456f26cf
4 files changed
+9 -9

No files matched your search

@@ -68,6 +68,7 @@
/** Eagle 的 userData 目录;eagle.app.userDataPath 注入得比较晚,所以留一个兜底。 */
function userDataPath() {
if (eagle.app && eagle.app.userDataPath) return eagle.app.userDataPath;
if (process.platform === 'darwin') return path.join(os.homedir(), 'Library', 'Application Support', 'Eagle');
return path.join(process.env.APPDATA || path.join(os.homedir(), 'AppData', 'Roaming'), 'Eagle');
}