mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
29 lines
1022 B
Batchfile
29 lines
1022 B
Batchfile
|
echo "invoking visual dev tools..."
|
||
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat"
|
||
|
echo %PATH%
|
||
|
|
||
|
set PATH=%PATH%;C:\Program Files\nodejs\;C:\Program Files\Git\cmd
|
||
|
echo %PATH%
|
||
|
|
||
|
set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
|
||
|
echo %PATH%
|
||
|
|
||
|
:: Below command replaces buildVersion with the appropriate build number from jenkins
|
||
|
:: https://superuser.com/questions/339118/regex-replace-from-command-line
|
||
|
sed -i -e "s/\"buildNumber\"[[:space:]]*\:[[:space:]]*\".*\"/\"buildNumber\":\"%PARENT_BUILD_VERSION%\"/g" package.json
|
||
|
|
||
|
sed -i -e "s/\"electronDist\"[[:space:]]*\:[[:space:]]*\".*\"/\"electronDist\":\"C:\\jenkins\\workspace\\R64\"/g" package.json
|
||
|
|
||
|
echo "Copying search libraries"
|
||
|
echo D | xcopy /y "C:\jenkins\workspace\tronlibraries\library" "library"
|
||
|
|
||
|
echo "Running npm install..."
|
||
|
call npm install
|
||
|
|
||
|
call npm i -g gulp-cli
|
||
|
echo "Setting expiry to days: %EXPIRY_PERIOD%"
|
||
|
call gulp setExpiry --period %EXPIRY_PERIOD%
|
||
|
|
||
|
echo "Building the 64 bit version..."
|
||
|
call npm run unpacked-win
|