Skip to content

Commit

Permalink
Running script from correct directory
Browse files Browse the repository at this point in the history
  • Loading branch information
L4ZZA committed Jul 12, 2020
1 parent fd02760 commit a73e8b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"'

Expand Down
1 change: 1 addition & 0 deletions scripts/create_installer.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a73e8b0

Please sign in to comment.