diff --git a/appveyor.yml b/appveyor.yml index 7b08f4c..2e293b0 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -111,8 +111,11 @@ after_build: - cmd: '%ROOT%/bin/%CONFIG_PARTIAL%-%OS_PARTIAL%-%PLAT_PARTIAL%/tests/tests.exe' # show content of test dir to see if report is created. - cmd: 'dir bin\%CONFIG_PARTIAL%-%OS_PARTIAL%-%PLAT_PARTIAL%\tests' -# Create installer [it works because appveyor image comes with NSIS installed] -- cmd: '%SCRIPTS%\create_installer.bat %CONFIG_PARTIAL% -s' +- cmd: 'dir .' +# Change directory, call installer script and step back one directory +# Operators in CMD https://stackoverflow.com/questions/28889954/what-does-do-in-this-batch-file/28889980#28889980 +- cmd: "cd %SCRIPTS% & create_installer.bat %CONFIG_PARTIAL% -s" +- cmd: 'dir .' # Renaming installer to include version in its name - cmd: 'ren %OUTPUT_FOLDER%\installers\%PRODUCT_NAME%Setup.exe "%PRODUCT_NAME%-%FILE_VERSION%-setup.exe"' diff --git a/scripts/create_installer.bat b/scripts/create_installer.bat index 730aa1c..d628a85 100644 --- a/scripts/create_installer.bat +++ b/scripts/create_installer.bat @@ -52,6 +52,7 @@ IF "%SILENT_MODE%" == "true" ( @rem run following lines one folder above pushd %~dp0..\ +echo %~dp0 @rem variables have to be defined before passing the installer path call "C:\Program Files (x86)\NSIS\makensis.exe" "/DCONFIG_PARAM=%CONFIG%" "installer\Ember.nsi" popd