SDA-3354 Removing legacy installer

This commit is contained in:
Mattias Gustavsson
2021-10-18 08:12:39 +02:00
parent 973f2622b9
commit d1c4f9a499
8 changed files with 1 additions and 785 deletions

View File

@@ -62,29 +62,9 @@ IF "%EXPIRY_PERIOD%"=="" (
echo "Running tests, code coverage, linting and building..."
call npm run unpacked-win
echo "Updating 64 bit installer file with hashed passwd..."
set hashedPasswdFile=%HASHED_PASSWORD_FILE_PATH%
if NOT EXIST %hashedPasswdFile% (
echo "can not find hashed password file in: " %hashedPasswdFile%
exit /b -1
)
set /p hashedPasswd=<%hashedPasswdFile%
set installerFile=installer\win\Symphony-x64.aip
if NOT EXIST %installerFile% (
echo "can not find installer file in: " %installerFile%
exit /b -1
)
call powershell -Command "(get-content %installerFile%) | foreach-object {$_ -replace '4A99BAA4D493EE030480AF53BA42EA11CCFB627AB1800400DA9692073D68C522A10A4FD0B5F78525294E51AC7194D55B5EE1D31F', '%hashedPasswd%'} | set-content %installerFile%"
echo "creating 64 bit msi..."
rem add AdvancedInstaller.com to PATH
set PATH="%PATH%";C:\Program Files\nodejs\;C:\Program Files (x86)\Caphyon\Advanced Installer 15.9\bin\x86
set PATH="%PATH%";C:\Program Files\nodejs\
echo %PATH%
call node -e "console.log(require('./package.json').version);" > version.txt
@@ -120,38 +100,6 @@ copy /y "%PFX_DIR%\%PFX_FILE%" "%installerDir%\%PFX_FILE%"
cd %installerDir%
set AIP=Symphony-x64
if EXIST %AIP%-cache (
echo "remove old msi cache file"
rmdir /q /s %AIP%-cache
)
if EXIST %AIP%-SetupFiles (
echo "remove old msi setup files"
rmdir /q /s %AIP%-SetupFiles
)
echo "Running Advanced Installer to build MSI"
call AdvancedInstaller.com /edit %AIP%.aip /SetVersion %SYMVER%
IF %errorlevel% neq 0 (
echo "failed to set advanced installer build version"
exit /b -1
)
call AdvancedInstaller.com /build %AIP%.aip
IF %errorlevel% neq 0 (
echo "error returned from advanced installer:" %errorlevel%
exit /b -1
)
if NOT EXIST %AIP%-SetupFiles/%AIP%.msi (
echo "Failure - Did not produce MSI"
exit /b -1
)
echo "Copying Legacy MSI installer to target dir"
copy "%AIP%-SetupFiles\%AIP%.msi" "%targetsDir%\Legacy-%archiveName%.msi"
if NOT EXIST %SIGNING_FILE_PATH% (
echo Signing failed, 'signing.bat' not found.