tryton-gtk2/setup-single.nsi
C?dric Krier 80a25809c5 Use package_data instead of data_files
package_data must be used for data that are closely related to the package's
implemenation. This is the case of the pixmaps and the locale.

issue4983
review24421002
2015-10-03 11:45:10 +02:00

37 lines
809 B
Text

;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=<VERSION>'"
!endif
;General
Name "Tryton ${VERSION}"
OutFile "tryton-${VERSION}.exe"
SetCompressor lzma
SetCompress auto
SilentInstall silent
Icon "tryton\data\pixmaps\tryton\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 "CHANGELOG"
SetOutPath "$PLUGINSDIR\doc"
File /r "doc\*"
;Run the exe
SetOutPath '$EXEDIR'
nsExec::Exec $PLUGINSDIR\tryton.exe
SectionEnd