From 41ace3a9e53b52b4271554d7aedd88d533ee5f5e Mon Sep 17 00:00:00 2001 From: rejbasket <39080670+rejbasket@users.noreply.github.com> Date: Wed, 8 Dec 2021 22:18:41 +0100 Subject: add macOS and windows installer (#1352) --- installer_scripts/scripts/postinstall | 5 +++++ installer_scripts/scripts/preinstall | 11 +++++++++++ 2 files changed, 16 insertions(+) create mode 100755 installer_scripts/scripts/postinstall create mode 100755 installer_scripts/scripts/preinstall (limited to 'installer_scripts/scripts') diff --git a/installer_scripts/scripts/postinstall b/installer_scripts/scripts/postinstall new file mode 100755 index 00000000..687f5149 --- /dev/null +++ b/installer_scripts/scripts/postinstall @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +mv /tmp/inkstitch/ $HOME/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape/extensions/ +echo "Inkstitch was moved!" +exit 0 diff --git a/installer_scripts/scripts/preinstall b/installer_scripts/scripts/preinstall new file mode 100755 index 00000000..40187fb3 --- /dev/null +++ b/installer_scripts/scripts/preinstall @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +inkstitch_folder=($HOME/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape/extensions/inkstitch) +if [[ -L "${inkstitch_folder}" ]]; then + unlink "${inkstitch_folder}" + echo "Unlinking manual install, to avoid damaging user local repository." +else + rm -rf "${inkstitch_folder}" + echo "Removing previous Ink/Stitch installation." +fi +exit 0 -- cgit v1.2.3