Author: kuemmel
Date: Sat May 21 10:57:52 2011
New Revision: 38795
URL: http://www.lyx.org/trac/changeset/38795

Log:
cmake: prepage ready-to-use nsis files generation

Added:
   
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh.cmake
      - copied unchanged from r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh
   lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi.cmake
      - copied unchanged from r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi
   lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh.cmake
      - copied unchanged from r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh

Copied: 
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh.cmake
 (from r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ 
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh.cmake
        Sat May 21 10:57:52 2011        (r38795, copy of r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/include/declarations.nsh)
@@ -0,0 +1,99 @@
+/*
+
+declaration.nsh
+
+Configuration of LyX installer
+
+*/
+
+SetCompressor /SOLID lzma
+
+#--------------------------------
+# File locations
+
+!define FILES_LICENSE "license.rtf"
+!define FILES_ICONS "..\icons"
+!define FILES_PDFVIEW "${FILES_DEPS}\bin"
+!define FILES_MSVC "${FILES_DEPS}\bin"
+!define FILES_PYTHON "${FILES_DEPS}\python"
+!define FILES_IMAGEMAGICK "${FILES_DEPS}\imagemagick"
+!define FILES_GHOSTSCRIPT "${FILES_DEPS}\ghostscript"
+!define FILES_NETPBM "${FILES_DEPS}\bin"
+!define FILES_DTL "${FILES_DEPS}\bin"
+!define FILES_DVIPOST "${FILES_DEPS}\bin"
+!define FILES_DVIPOST_PKG "${FILES_DEPS}\tex"
+!define FILES_PDFTOOLS "${FILES_DEPS}\bin"
+!define FILES_METAFILE2EPS "${FILES_DEPS}\bin"
+
+#--------------------------------
+# Locations of components to download
+
+# CTAN and SourceForge select a mirror automatically
+
+!define DOWNLOAD_LATEX 
"http://mirrors.ctan.org/systems/win32/miktex/setup/${SETUPFILE_LATEX}";
+
+#--------------------------------
+# Locations of setup files for components (for bundled setup)
+
+!define INSTALL_LATEX "${SETUPFILE_LATEX}"
+
+#--------------------------------
+# Names and version
+
+!define APP_NAME "LyX"
+!define APP_VERSION_NUMBER 
"${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}.${APP_VERSION_REVISION}.${APP_VERSION_BUILD}"
+!define APP_SERIES_NAME "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}"
+!define APP_SERIES_KEY "${APP_VERSION_MAJOR}${APP_VERSION_MINOR}"
+!define APP_DIR "${APP_NAME}${APP_SERIES_KEY}"
+!define APP_DIR_USERDATA "${APP_NAME}${APP_SERIES_KEY}"
+!define APP_INFO "${APP_NAME} - The Document Processor"
+!define APP_COPYRIGHT "LyX is Copyright � 1995 by Matthias Ettrich, 1995-2011 
LyX Team"
+
+!define APP_RUN "bin\LyX.exe"
+
+!define APP_REGKEY "Software\${APP_NAME}${APP_SERIES_KEY}"
+!define APP_REGKEY_SETUP "Software\${APP_NAME}${APP_SERIES_KEY}\Setup"
+!define APP_REGKEY_SETTINGS "Software\${APP_NAME}${APP_SERIES_KEY}\Settings"
+
+!define APP_REGNAME_DOC "LyX.Document"
+
+!define APP_EXT ".lyx"
+!define APP_MIME_TYPE "application/lyx"
+
+#--------------------------------
+# Setup settings
+
+# Output file name can be configured using command line paramaters like
+# /DExeFile=/path/to/installer
+
+!ifndef SETUPTYPE
+  !define SETUPTYPE STANDARD
+!endif
+ 
+!if ${SETUPTYPE} == STANDARD
+
+  !define SETUP_EXE ${ExeFile}
+
+!else if ${SETUPTYPE} == BUNDLE
+
+  !define SETUP_EXE ${BundleExeFile}
+  !define BUNDLESETUP_LATEX
+
+!endif
+
+!define SETUP_ICON "${FILES_ICONS}\lyx.ico"
+!define SETUP_HEADERIMAGE "graphics\header.bmp"
+!define SETUP_WIZARDIMAGE "graphics\wizard.bmp"
+!define SETUP_UNINSTALLER "Uninstall-${APP_NAME}.exe"
+!define SETUP_UNINSTALLER_KEY "${APP_NAME}${APP_SERIES_KEY}"
+
+#--------------------------------
+# Names of binaries to identify compontents
+
+!define BIN_LATEX "tex.exe"
+!define BIN_BIBTEXEDITOR "JabRef.exe"
+
+#--------------------------------
+# Custom NSIS plug-ins
+
+!addplugindir "${FILES_NSISPLUGINS}"

Copied: lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi.cmake 
(from r38794, lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi.cmake Sat May 
21 10:57:52 2011        (r38795, copy of r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/lyx.nsi)
@@ -0,0 +1,27 @@
+/*
+
+NSIS Script - LyX 2.0 Installer for Win32
+Authors: Joost Verburg, Angus Leeming, Uwe St�hr
+Compatible with NSIS 2.46
+
+*/
+
+!include settings.nsh
+
+!include include\declarations.nsh
+!include include\variables.nsh
+!include include\nsis.nsh
+!include include\filelist.nsh
+!include include\detection.nsh
+!include include\gui.nsh
+!include include\init.nsh
+!include setup\install.nsh
+!include setup\uninstall.nsh
+!include setup\configure.nsh
+!include gui\external.nsh
+!include gui\reinstall.nsh
+
+#--------------------------------
+# Output file
+
+Outfile "${SETUP_EXE}"

Copied: 
lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh.cmake (from 
r38794, lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh)
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh.cmake    
Sat May 21 10:57:52 2011        (r38795, copy of r38794, 
lyx-devel/trunk/development/Win32/packaging/installer/settings.nsh)
@@ -0,0 +1,48 @@
+/*
+
+Settings for LyX installer
+
+These typically need to be modified for each LyX release
+
+*/
+
+#--------------------------------
+# Version number
+
+!define APP_VERSION_MAJOR 2
+!define APP_VERSION_MINOR 0
+!define APP_VERSION_REVISION 0
+!define APP_VERSION_BUILD 0 # Start with 1 for the installer releases of each 
version
+
+!define /date APP_VERSION "${APP_VERSION_MAJOR}.${APP_VERSION_MINOR}svn 
%Y%m%d" # Version to display
+
+#--------------------------------
+# Installer file name
+
+# Typical names for the release are "LyX-2.0.0-1-Installer.exe" etc.
+
+!ifndef ExeFile
+  !define /date ExeFile 
"LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer.exe"
+!endif
+!ifndef BundleExeFile
+  !define /date BundleExeFile 
"LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Bundle.exe"
+!endif
+!ifndef MinimalExeFile
+  !define /date MinimalExeFile 
"LyX-${APP_VERSION_MAJOR}${APP_VERSION_MINOR}svn-%Y%m%d-Installer-Minimal.exe"
+!endif
+
+#--------------------------------
+# File locations
+
+!define FILES_LYX "C:\LyX\lyx-20-install"
+!define FILES_DEPS "C:\LyX\lyx-20-build\msvc2010-deps\deps20"
+!define FILES_BUNDLE "C:\LyX\depsbundle"
+!define FILES_QT "C:\Qt\qt-everywhere-opensource-src-4.7.1"
+
+#--------------------------------
+# MiKTeX
+# Sizes in KB
+
+!define SETUPFILE_LATEX "basic-miktex-2.9.4146.exe"
+!define SIZE_DOWNLOAD_LATEX 160106
+!define SIZE_LATEX 380000

Reply via email to