From d0292a0deb1a24709f0aadfc7f5a60fe63ef59cb Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Wed, 11 Sep 2019 01:34:12 +1000 Subject: [PATCH] began rewriting appveyor script --- appveyor-build.bat | 38 ++++++++++++++++++++++++++++++++++++++ appveyor.yml | 24 ++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 appveyor-build.bat create mode 100644 appveyor.yml diff --git a/appveyor-build.bat b/appveyor-build.bat new file mode 100644 index 000000000..808c3c39a --- /dev/null +++ b/appveyor-build.bat @@ -0,0 +1,38 @@ +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 +vcpkg install ffmpeg + +REM Install OpenColorIO + +REM Install OpenImageIO +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! diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 000000000..60b3c0f79 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,24 @@ +version: {build} +branches: + only: + - master +image: Visual Studio 2015 +environment: + TRAVIS_REPO_SLUG: olive-editor/olive + matrix: + - MSYSTEM: MINGW64 + QTDIR: 5.12\mingw73_64 + ARCH: x86_64 + QTTOOLS: Tools\mingw730_64 + NSISDEF: /DX64 +# - MSYSTEM: MINGW32 +# QTDIR: 5.12\mingw73_32 +# ARCH: i686 +# QTTOOLS: Tools\mingw730_32 +build_script: +- cmd: appveyor-build.bat +artifacts: +- path: Olive*.zip + name: Olive Portable +- path: Olive*.exe + name: Olive Installer