Fix Linux build issues

This commit is contained in:
hensm
2019-05-07 20:16:37 +01:00
parent 4ac2dcad65
commit 137f6519be
2 changed files with 10 additions and 2 deletions

View File

@@ -32,7 +32,9 @@ switch (platform) {
case "darwin":
case "linux": {
// Manifest location within home directory
const destination = path.join(os.homedir(), manifestPath[platform]);
const destination = path.join(os.homedir(), platform === "linux"
? ".mozilla/native-messaging-hosts/"
: manifestPath[platform]);
if (argv.remove) {
fs.remove(path.join(destination, manifestName));