Changed Windows build to use a local virtual machine. Updated installer build script to use the local builds instead of the AWS ones.
117 lines
2.8 KiB
Batchfile
117 lines
2.8 KiB
Batchfile
@echo off
|
|
|
|
rmdir /s /q Duplicati
|
|
del /q Duplicati.msi
|
|
del /q Duplicati-32bit.msi
|
|
|
|
IF NOT EXIST "%1" (
|
|
echo File not found, please supply a zip file with the build as the first argument
|
|
goto EXIT
|
|
)
|
|
|
|
call "%VS140COMNTOOLS%vsvars32.bat"
|
|
|
|
7z x -oDuplicati %1
|
|
|
|
IF EXIST "..\oem" (
|
|
echo Installing OEM files
|
|
xcopy ..\oem\* Duplicati\webroot\oem /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem" (
|
|
echo Installing OEM files
|
|
xcopy ..\..\oem\* Duplicati\webroot\ /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem" (
|
|
echo Installing OEM files
|
|
xcopy ..\..\..\oem\* Duplicati\webroot\ /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\oem-app-name.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\oem-app-name.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem-app-name.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\oem-app-name.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem-app-name.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\..\oem-app-name.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\oem-update-url.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\oem-update-url.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem-update-url.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\oem-update-url.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem-update-url.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\..\oem-update-url.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\oem-update-key.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\oem-update-key.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem-update-key.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\oem-update-key.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem-update-key.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\..\oem-update-key.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\oem-update-readme.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\oem-update-readme.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem-update-readme.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\oem-update-readme.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem-update-readme.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\..\oem-update-readme.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\oem-update-installid.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\oem-update-installid.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\oem-update-installid.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\oem-update-installid.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
IF EXIST "..\..\..\oem-update-installid.txt" (
|
|
echo Installing OEM override file
|
|
xcopy ..\..\..\oem-update-installid.txt Duplicati /e /s /y /i
|
|
)
|
|
|
|
rmdir /s /q obj
|
|
rmdir /s /q bin
|
|
|
|
msbuild /property:Configuration=Release /property:Platform=x64
|
|
move bin\x64\Release\Duplicati.msi Duplicati.msi
|
|
|
|
msbuild /property:Configuration=Release /property:Platform=x86
|
|
move bin\x86\Release\Duplicati.msi Duplicati-32bit.msi
|
|
|
|
rmdir /s /q Duplicati
|
|
|
|
:EXIT |