commit c784119949c7a166b94f6978618df3f256061a80
Author: Richard Kimberly Heck <[email protected]>
Date: Sat Apr 4 19:23:48 2020 -0400
Batch file for removing unneeded imagemagick binaries.
Also update installation description.
---
.../packaging/dependencies/imagemagickConvert.bat | 25 ++++++++++++++++++++
development/Win32/packaging/installer/Readme.txt | 20 +++++++++++++--
2 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/development/Win32/packaging/dependencies/imagemagickConvert.bat
b/development/Win32/packaging/dependencies/imagemagickConvert.bat
new file mode 100644
index 0000000..cc8a90e
--- /dev/null
+++ b/development/Win32/packaging/dependencies/imagemagickConvert.bat
@@ -0,0 +1,25 @@
+@echo off
+set "psCommand="(new-object -COM
'Shell.Application').BrowseForFolder(0,'Please choose the imagemagick
folder.',0,0).self.path""
+for /f "usebackq delims=" %%I in (`powershell %psCommand%`) do set "folder=%%I"
+
+if not exist "%folder%\magick.exe" (
+ echo selected wrong directory, magick.exe does not exist
+ pause
+ exit
+)
+
+rd /s /q "%folder%\images"
+rd /s /q "%folder%\www"
+del "%folder%\compare.exe"
+del "%folder%\composite.exe"
+del "%folder%\conjure.exe"
+del "%folder%\convert.exe"
+del "%folder%\ffmpeg.exe"
+del "%folder%\identify.exe"
+del "%folder%\IMDisplay.exe"
+del "%folder%\mogrify.exe"
+del "%folder%\montage.exe"
+del "%folder%\stream.exe"
+
+@echo done
+pause
\ No newline at end of file
diff --git a/development/Win32/packaging/installer/Readme.txt
b/development/Win32/packaging/installer/Readme.txt
index 2709dca..47cd9ab 100644
--- a/development/Win32/packaging/installer/Readme.txt
+++ b/development/Win32/packaging/installer/Readme.txt
@@ -10,6 +10,13 @@ To build the installer do the following:
extract from it the file FindProc.dll to the folder \Plugins\x86-unicode of
NSIS's installation folder
- download the plugin Inetc (https://nsis.sourceforge.io/Inetc_plug-in)
extract the content into the NSIS's installation folder
+- Go to the Qt-kit directory, which you have specified as CMAKE_PREFIX_PATH
before compiling in CMake Gui, enter the bin folder,
+ copy these files:
+ Qt5Concurrent.dll"
+ Qt5Network.dll"
+ Qt5OpenGL.dll"
+ Qt5PrintSupport.dll"
+ to %%lyxbuild%%\LYX_INSTALLED\bin
- open the file settings.nsh with a text editor and adapt the settings for
your need. A good text editor
for NSIS development is e.g. Visual Studio Code with the NSIS extension.
- right-click on the file lyx-standard.nsi and choose "Compile NSIS script"
@@ -21,8 +28,13 @@ Updating dependencies
- Imagemagick:
download the portable version of imagemagick for windows from
https://imagemagick.org/script/download.php (32 or 64 bit),
current version is 7.0.10-0
- extract the zip archive, there will be many executable files which are the
exact same size as "magick.exe" which is
- the only executable LyX needs, delete these redundant executables. Also
delete ffmpeg.exe and IMDisplay.exe.
+ extract the zip archive,
+ run imagemagickConvert.bat in
%%repo%%\development\Win32\packaging\dependencies, browse to the extracted
imagemagick archive,
+ after the script finishes check for anything suspicious.
+ if there is anything suspicious or it didn't work (in case imagemagic devs
changed something), read the following description,
+ it describes how it was done for 7.0.10-0, repair the bat file and update
the description
+ In the fresh extracted archive will be many executable files which are the
exact same size as "magick.exe". magick.exe is
+ the only executable LyX needs, delete the other redundant executables. Also
delete ffmpeg.exe and IMDisplay.exe.
The resulting folder size should be around 15-16 MB
- Ghostscript
@@ -83,4 +95,6 @@ Updating dependencies
- pdfview.exe
this is a NSIS script, which calls users standard pdf viewer to display pdf
files you compile with
LaTeX using LyX, its source is available in
%%lyxgit%%\development\Win32\pdfview,
- it uses System.dll and Console.dll
\ No newline at end of file
+ it uses System.dll and Console.dll
+
+Note: if you update any dependencies, please add a note to ChangeLog.txt
\ No newline at end of file
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs