Skip to content

Commit

Permalink
update path
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Mar 13, 2024
1 parent fc4910b commit 671deb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ const metadata_fetch_delay = 1000; // ms to delay after fetching metadata

if (InMacOS) {
// let cwd = app.getPath('exe').replace(/\/[^\/]+$/, '');
let cwd = process.env.HOME + "Library/Application Support/MajsoulPaipuAnalyzer";
let cwd = path(process.env.HOME, "Library", "Application Support", "MajsoulPaipuAnalyzer");
console.log('current dir: ' + cwd);
dataPath = cwd + '/' + dataPath;
fs.mkdirSync(dataPath, { recursive: true });
if (!fs.existsSync(dataPath)) fs.mkdirSync(dataPath, { recursive: true });
}
else {
app.setPath('userData', appPath + '/UserData');
Expand Down

0 comments on commit 671deb4

Please sign in to comment.