Merge pull request #439 from noodlebox/osx-electron-fix
Fix Electron installer for OSX
This commit is contained in:
commit
81bd8938fe
|
@ -73,8 +73,8 @@ class Utils {
|
||||||
});
|
});
|
||||||
return path;
|
return path;
|
||||||
},
|
},
|
||||||
"darwin": () => "/Applications/Discord.app",
|
"darwin": () => "/Applications/Discord.app/Contents",
|
||||||
"linux": () => "" // TODO
|
"linux": () => "/usr/share/discord"
|
||||||
}[platform]();
|
}[platform]();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -84,8 +84,12 @@ class Utils {
|
||||||
"win32": () => {
|
"win32": () => {
|
||||||
return `${process.env.APPDATA}/BetterDiscord/lib`;
|
return `${process.env.APPDATA}/BetterDiscord/lib`;
|
||||||
},
|
},
|
||||||
|
"darwin": () => {
|
||||||
|
return `${process.env.HOME}/.local/share/BetterDiscord`;
|
||||||
|
},
|
||||||
"linux": () => {
|
"linux": () => {
|
||||||
return ""; // TODO
|
// FIXME: for a non-root user, a path like OSX's makes more sense
|
||||||
|
return "/usr/local/share/BetterDiscord";
|
||||||
}
|
}
|
||||||
}[platform]();
|
}[platform]();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue