From d929336f08f08e0b8c6a054df2367d24af92dd11 Mon Sep 17 00:00:00 2001
From: rejbasket <39080670+rejbasket@users.noreply.github.com>
Date: Sat, 10 Feb 2024 20:16:30 +0100
Subject: Rejbasket/pyinstaller fix installer checks (#2718)
* netowrkx deps added in build
* check for user inkscape config before installing
* get os version in exception
* update electron app location according to pyinstaller redesign
* fixed broken libgeos syslinks
* contents-directory added pyinstaller args fix broken linux and win versions
* updated inkex
* fix print_pdf
---------
authored-by: rejbasket
---
installer_scripts/inkstitch.plist | 2 +-
installer_scripts/scripts/preinstall | 14 +-------------
installer_scripts/template.iss | 14 ++++++++++++++
3 files changed, 16 insertions(+), 14 deletions(-)
(limited to 'installer_scripts')
diff --git a/installer_scripts/inkstitch.plist b/installer_scripts/inkstitch.plist
index 8d102d1f..4d85c7a5 100644
--- a/installer_scripts/inkstitch.plist
+++ b/installer_scripts/inkstitch.plist
@@ -12,7 +12,7 @@
BundleOverwriteAction
install
RootRelativeBundlePath
- Contents/MacOS/electron/inkstitch-gui.app
+ Contents/Frameworks/electron/inkstitch-gui.app
diff --git a/installer_scripts/scripts/preinstall b/installer_scripts/scripts/preinstall
index 165128a7..01427651 100755
--- a/installer_scripts/scripts/preinstall
+++ b/installer_scripts/scripts/preinstall
@@ -1,25 +1,13 @@
#!/bin/bash
set -e
inkstitch_folder=($HOME/Library/Application\ Support/org.inkscape.Inkscape/config/inkscape/extensions/inkstitch)
-location_inkscape=(/Applications/Inkscape.app)
-
-# Checking if Inkscape is installed
-if [[ -d "${location_inkscape}" ]]; then
- echo "Inkscape is found and installed "${location_Inkscape}"."
-else
- osascript <<-AppleScript
- set theDialogText to "Ink/Stich is an Inkscape plugin. Please install and run Inkscape before installing Ink/Stitch."
- display dialog theDialogText buttons {"Okay"} default button "Okay"
- AppleScript
- exit 1
-fi
# Checking if Inkscape configuration folders are created
if [[ -d "${inkstitch_folder%config*}" ]]; then
echo "Inkscape configs are found and installed "${inkstitch_folder%config*}"."
else
osascript <<-AppleScript
- set theDialogText to "Please run Inkscape before installing Ink/Stitch."
+ set theDialogText to "Ink/Stich is an Inkscape plugin. Please install and run Inkscape before installing Ink/Stitch."
display dialog theDialogText buttons {"Okay"} default button "Okay"
AppleScript
exit 1
diff --git a/installer_scripts/template.iss b/installer_scripts/template.iss
index 99ae6d33..8dd26976 100755
--- a/installer_scripts/template.iss
+++ b/installer_scripts/template.iss
@@ -118,6 +118,20 @@ begin
Result := 1;
end;
+{ ///////////////////////////////////////////////////////////////////// }
+function InitializeSetup(): Boolean;
+begin
+ Result := True;
+
+ if DirExists(ExpandConstant('{userappdata}\inkscape\extensions\')) then
+ Log('Found Inks')
+ else
+ begin
+ MsgBox('Error: Inkscape Extensions folder not found! Install and then run Inkscape to create the extension folder.', mbInformation, MB_OK);
+ Result := False;
+ end;
+end;
+
{ ///////////////////////////////////////////////////////////////////// }
procedure CurStepChanged(CurStep: TSetupStep);
begin
--
cgit v1.2.3