From 0d672420f75a272686e5a7406ac3fe0351e06c64 Mon Sep 17 00:00:00 2001 From: Nicholas Hubbard Date: Sat, 14 Jan 2017 15:32:59 -0500 Subject: [PATCH] Add postinstall script for installation --- installers/postinstall/postinstall.sh | 2 ++ package.json | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 installers/postinstall/postinstall.sh diff --git a/installers/postinstall/postinstall.sh b/installers/postinstall/postinstall.sh new file mode 100644 index 00000000..dc19df98 --- /dev/null +++ b/installers/postinstall/postinstall.sh @@ -0,0 +1,2 @@ +echo "\033[32mMagicMirror installation successful!" +exit 0 diff --git a/package.json b/package.json index 118c9837..9d69eb58 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,8 @@ "description": "A modular interface for smart mirrors.", "main": "js/electron.js", "scripts": { - "start": "electron js/electron.js" + "start": "electron js/electron.js", + "postinstall": "sh installers/postinstall.sh" }, "repository": { "type": "git",