From c5f93e80a443069bc080b3412f2f163469d7b166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 24 Nov 2008 09:42:48 +0100 Subject: [PATCH] Add nsi for single executable --- setup-single.nsi | 71 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 setup-single.nsi diff --git a/setup-single.nsi b/setup-single.nsi new file mode 100644 index 0000000000..9285458f07 --- /dev/null +++ b/setup-single.nsi @@ -0,0 +1,71 @@ +;This file is part of Tryton. The COPYRIGHT file at the top level of +;this repository contains the full copyright notices and license terms. + +;Check version +!ifndef VERSION + !error "Missing VERSION! Specify it with '/DVERSION='" +!endif +!ifndef GTKDIR + !error "Missing GTKDIR! Specify it with '/DGTKDIR='" +!endif + +;General +Name "Tryton ${VERSION}" +OutFile "tryton-${VERSION}.exe" +SetCompressor lzma +SetCompress auto +SilentInstall silent +Icon "share\pixmaps\tryton.ico" + +Section + InitPluginsDir + + ;Set output path to the installation directory + SetOutPath '$PLUGINSDIR' + + ;Put file + File /r "dist\*" + File "COPYRIGHT" + File "INSTALL" + File "LICENSE" + File "README" + File "TODO" + File "CHANGELOG" + + SetOutPath "$PLUGINSDIR\GTK\bin" + File /r "${GTKDIR}\bin\*" + + SetOutPath "$PLUGINSDIR\GTK\etc" + File /r "${GTKDIR}\etc\*" + + SetOutPath "$PLUGINSDIR\GTK\lib" + File /r "${GTKDIR}\lib\*" + + SetOutPath "$PLUGINSDIR\GTK\share\gtk-2.0" + File /r "${GTKDIR}\share\gtk-2.0\*" + + SetOutPath "$PLUGINSDIR\GTK\share\gtkthemeselector" + File /r "${GTKDIR}\share\gtkthemeselector\*" + + SetOutPath "$PLUGINSDIR\GTK\share\locale\de" + File /r "${GTKDIR}\share\locale\de\*" + + SetOutPath "$PLUGINSDIR\GTK\share\locale\es" + File /r "${GTKDIR}\share\locale\es\*" + + SetOutPath "$PLUGINSDIR\GTK\share\locale\fr" + File /r "${GTKDIR}\share\locale\fr\*" + + SetOutPath "$PLUGINSDIR\GTK\share\themes" + File /r "${GTKDIR}\share\themes\*" + + SetOutPath "$PLUGINSDIR\doc" + File /r "doc\*" + + SetOutPath "$PLUGINSDIR\plugins" + File /r "tryton\plugins\*" + + ;Run the exe + SetOutPath '$EXEDIR' + nsExec::Exec $PLUGINSDIR\tryton.exe +SectionEnd