From 7226019b6ad9f28c032df1c06ee03cff44a2e09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfred=20W=C3=A4rns=C3=A4ter?= Date: Thu, 19 Aug 2021 13:30:40 +0200 Subject: [PATCH] use npm prefix for install path --- Tools/capp/Generate.j | 1 - common.jake | 3 ++- package.json | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Tools/capp/Generate.j b/Tools/capp/Generate.j index a56450a53..1f89bab14 100644 --- a/Tools/capp/Generate.j +++ b/Tools/capp/Generate.j @@ -368,7 +368,6 @@ function createThemesInFile(/*Array*/ themes, /*String*/ aFile, /*Boolean*/ syml { var themeFolder = theme + ".blend", path = node_path.join(themesBuild, themeFolder); - console.log("createThemesInFile: " + path); if (!fs.lstatSync(path).isDirectory()) fail("Cannot find theme " + themeFolder + " in " + themesBuild); diff --git a/common.jake b/common.jake index ef4e5d613..955b6ad9a 100644 --- a/common.jake +++ b/common.jake @@ -453,7 +453,8 @@ global.installCopy = function(sourcePath, useSudo) } fs.readdirSync(binPath).forEach(function (name) { - child_process.execSync("sudo ln -sf " + path.join(binPath, name) + " /usr/local/bin/" + name); + var prefix = child_process.execSync("npm prefix -g").toString().trim(); + child_process.execSync("sudo ln -sf " + path.join(binPath, name) + " " + path.join(prefix, "bin", name)); }); }; diff --git a/package.json b/package.json index 7caf67514..4a92c6390 100644 --- a/package.json +++ b/package.json @@ -25,5 +25,10 @@ "press": "dist/cappuccino/bin/press", "objj": "dist/cappuccino/bin/objj", "jake": "dist/cappuccino/bin/jake" + }, + "license": "LGPL-2.1-only", + "repository": { + "type": "git", + "url": "https://github.com/cappuccino/cappuccino.git" } }