Files
oak-editor/appveyor-build.bat
T

44 lines
1.5 KiB
Batchfile

REM Set up Visual C++ envs
call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
REM Install FFmpeg
curl -L -o ffmpeg-shared.zip https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.2-win64-shared.zip
curl -L -o ffmpeg-dev.zip https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.2-win64-dev.zip
7z e ffmpeg-shared.zip
7z e ffmpeg-dev.zip
REM Install OpenColorIO
curl -L -o ocio.zip https://github.com/olive-editor/OpenColorIO-Win32/releases/download/v1.1.1/ocio-v1.1.1-win64-shared.zip
7z e ocio.zip
REM Install OpenImageIO
REM vcpkg install openimageio
REM Run cmake
cmake . -G "NMake Makefiles"
REM Run nmake
nmake
REM Dependencies are installed, time to set up packages
powershell $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
REM Store the Git hash as a variable
git rev-parse --short=7 HEAD > shorthash.txt
set /p HASH= < shorthash.txt
git rev-parse HEAD > longhash.txt
set /p TRAVIS_COMMIT= < longhash.txt
REM First, we create the installer
copy packaging\windows\nsis\* .
"C:\Program Files (x86)\NSIS\makensis.exe" /V4 /DX64 "/XOutFile Olive-%HASH%-Windows-%ARCH%.exe" olive.nsi
REM Next we create the portable version, which we'll need a "portable" file for
copy /b NUL olive\portable
REM Package the portable version into a zip
"C:\Program Files\7-Zip\7z.exe" a "Olive-%HASH%-Windows-%ARCH%.zip" "olive"
REM We're done!