We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a78558a commit 9ebf81fCopy full SHA for 9ebf81f
1 file changed
{{ cookiecutter.format }}/installer/scripts/postinstall
@@ -1,12 +1,18 @@
1
#!/bin/sh
2
echo "Post installation process started"
3
-
+{% if cookiecutter.console_app %}
4
if [ ! -d "/usr/local/bin" ]; then
5
echo "Creating /usr/local/bin directory"
6
mkdir -p /usr/local/bin
7
fi
8
9
echo "Install binary symlink"
10
ln -si "/Library/{{ cookiecutter.formal_name }}/{{ cookiecutter.formal_name }}.app/Contents/MacOS/{{ cookiecutter.formal_name }}" /usr/local/bin/{{ cookiecutter.app_name }}
11
+{% endif %}
12
+# Run the user-provided post-install script, if one was included.
13
+if [ -e "$(dirname "$0")/_postinstall" ]; then
14
+ echo "Running post-install script"
15
+ "$(dirname "$0")/_postinstall"
16
+fi
17
18
echo "Post installation process finished"
0 commit comments