2020-09-02 16:49:01 +00:00
|
|
|
version: '1.12.0-git-{build}'
|
2020-08-30 20:23:41 +00:00
|
|
|
image: 'Visual Studio 2019'
|
2017-10-03 12:42:31 +00:00
|
|
|
clone_depth: 1
|
|
|
|
|
|
|
|
# Build configuration
|
|
|
|
configuration:
|
|
|
|
- Release
|
|
|
|
|
|
|
|
# Environment
|
|
|
|
environment:
|
2019-03-24 08:32:11 +00:00
|
|
|
NINJA_URL: https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip
|
2020-05-07 19:09:58 +00:00
|
|
|
VSVARSALLPATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat'
|
2020-04-07 20:24:25 +00:00
|
|
|
QTPATH: 'cutter-deps\qt'
|
|
|
|
USE_APPVEYOR_QT: 'false'
|
2017-10-15 20:53:09 +00:00
|
|
|
matrix:
|
2019-02-14 18:42:52 +00:00
|
|
|
# Build: qmake vs2017 x86 shared
|
|
|
|
#- ARCH: x86
|
|
|
|
# PYTHON: 'C:\Python36'
|
|
|
|
# QMAKE: 1
|
|
|
|
# DEPLOY: true
|
2020-04-07 20:24:25 +00:00
|
|
|
# QTPATH: 'C:\Qt\5.12\msvc2017'
|
|
|
|
# USE_APPVEYOR_QT: true
|
2019-02-14 18:42:52 +00:00
|
|
|
# Build: qmake vs2017 x64 shared
|
2018-02-27 08:57:53 +00:00
|
|
|
- ARCH: x64
|
2018-02-25 19:17:03 +00:00
|
|
|
PYTHON: 'C:\Python36-x64'
|
2018-02-09 19:51:30 +00:00
|
|
|
QMAKE: 1
|
2018-07-13 18:22:10 +00:00
|
|
|
DEPLOY: true
|
2018-02-09 19:51:30 +00:00
|
|
|
# Build: meson ninja x64 static
|
2018-02-27 08:57:53 +00:00
|
|
|
- ARCH: x64
|
2018-02-25 19:17:03 +00:00
|
|
|
PYTHON: 'C:\Python36-x64'
|
2018-02-09 19:51:30 +00:00
|
|
|
MESON: 1
|
|
|
|
BACKEND: ninja
|
2018-07-13 18:22:10 +00:00
|
|
|
DEPLOY: false
|
2018-02-09 19:51:30 +00:00
|
|
|
|
|
|
|
install:
|
2019-02-14 18:42:52 +00:00
|
|
|
- ps: $env:path = ($env:path -split ";").Where({!($_ -like "*Microsoft SQL Server*")}) -join ";"
|
2019-03-16 10:35:31 +00:00
|
|
|
- cmd: C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && scripts/fetch_deps.sh"
|
|
|
|
- cmd: set "CUTTER_DEPS_DIR=%APPVEYOR_BUILD_FOLDER%\cutter-deps"
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: set "PATH=%CD%;%PYTHON%;%PATH%"
|
|
|
|
- cmd: call "%VSVARSALLPATH%" %ARCH%
|
2020-04-07 20:24:25 +00:00
|
|
|
- cmd: if "%USE_APPVEYOR_QT%" == "false" ( set "QTPATH=%APPVEYOR_BUILD_FOLDER%\%QTPATH%" )
|
2020-08-08 15:43:43 +00:00
|
|
|
- cmd: set "PATH=%QTPATH%\bin;%PYTHON%\Scripts\;%PATH%"
|
2020-04-07 20:24:25 +00:00
|
|
|
- cmd: echo %PATH%
|
2020-07-15 09:16:11 +00:00
|
|
|
- cmd: python -m pip install meson==0.52
|
2020-08-08 15:43:43 +00:00
|
|
|
- cmd: where meson.exe
|
2018-03-08 09:06:02 +00:00
|
|
|
- cmd: powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget %NINJA_URL% -OutFile ninja.zip; Expand-Archive .\ninja.zip -DestinationPath ."
|
2018-02-09 19:51:30 +00:00
|
|
|
# Artifacts
|
2020-09-02 16:49:01 +00:00
|
|
|
- cmd: set "ARTIFACT_NAME=Cutter-v1.12.0-rc1-%ARCH%.Windows"
|
2018-04-05 08:05:00 +00:00
|
|
|
- cmd: if defined MESON ( set "ARTIFACT_PATH=dist_%ARCH%" ) else ( set "ARTIFACT_PATH=build_%ARCH%\cutter" )
|
2017-10-03 12:42:31 +00:00
|
|
|
|
|
|
|
before_build:
|
2018-02-27 08:57:53 +00:00
|
|
|
- cmd: git submodule update --init
|
2019-04-09 07:44:44 +00:00
|
|
|
- scripts\prepare_breakpad.bat
|
2017-10-03 12:42:31 +00:00
|
|
|
|
|
|
|
# Build config
|
2017-10-15 19:19:48 +00:00
|
|
|
build_script:
|
2020-06-15 20:38:15 +00:00
|
|
|
- cmd: if defined QMAKE ( call prepare_r2.bat )
|
|
|
|
- cmd: if defined QMAKE ( C:\msys64\usr\bin\bash -lc "export PATH=\"/c/msys64/usr/bin:$PATH\" && cd \"$APPVEYOR_BUILD_FOLDER\" && scripts/appveyor_r2ghidra.sh" )
|
2020-08-08 15:43:43 +00:00
|
|
|
- cmd: if defined QMAKE ( call build.bat CUTTER_APPVEYOR_R2DEC=true CUTTER_R2GHIDRA_STATIC=true R2GHIDRA_SOURCE="%APPVEYOR_BUILD_FOLDER%/r2ghidra-dec" R2GHIDRA_INSTALL_PATH="%APPVEYOR_BUILD_FOLDER%/r2_dist/lib/plugins" CUTTER_ENABLE_CRASH_REPORTS=true CUTTER_ENABLE_PYTHON=true CUTTER_ENABLE_PYTHON_BINDINGS=true CUTTER_DEPS_DIR="%CUTTER_DEPS_DIR%" )
|
2019-03-25 20:43:00 +00:00
|
|
|
- cmd: if defined MESON ( python meson.py --release --dist=%ARTIFACT_PATH% --backend=%BACKEND% --python )
|
2018-03-08 09:06:02 +00:00
|
|
|
|
|
|
|
after_build:
|
2020-08-08 15:43:43 +00:00
|
|
|
- cmd: if defined QMAKE ( set "PATH=%CD%\r2_dist\bin;%PATH%" && powershell scripts\bundle_r2dec.ps1 "%CD%\%ARTIFACT_PATH%" )
|
2020-06-15 20:38:15 +00:00
|
|
|
#- cmd: if defined QMAKE ( C:\msys64\usr\bin\bash -lc "export PATH=\"/c/msys64/usr/bin:$PATH\" && cd \"$APPVEYOR_BUILD_FOLDER\" && scripts/appveyor_r2ghidra.sh" )
|
2020-04-07 20:24:25 +00:00
|
|
|
#- cmd: powershell scripts\bundle_openssl.ps1 %ARCH% "%CD%\%ARTIFACT_PATH%"
|
2019-03-24 08:32:11 +00:00
|
|
|
- cmd: powershell scripts\bundle_python.ps1 %ARCH% "%CD%\%ARTIFACT_PATH%"
|
2019-03-16 10:35:31 +00:00
|
|
|
- cmd: xcopy "%CUTTER_DEPS_DIR%\pyside\lib\site-packages" "%ARTIFACT_PATH%\python36\site-packages" /e /i /h
|
2020-04-07 20:24:25 +00:00
|
|
|
- cmd: copy "%CUTTER_DEPS_DIR%\pyside\bin\shiboken2.abi3.dll" "%ARTIFACT_PATH%\"
|
|
|
|
- cmd: copy "%CUTTER_DEPS_DIR%\pyside\bin\pyside2.abi3.dll" "%ARTIFACT_PATH%\"
|
2017-10-08 06:23:22 +00:00
|
|
|
|
2017-10-03 12:42:31 +00:00
|
|
|
# Tests
|
|
|
|
test: off
|
2017-10-08 06:23:22 +00:00
|
|
|
|
|
|
|
# Artifacts
|
|
|
|
artifacts:
|
2018-02-27 08:57:53 +00:00
|
|
|
- path: "%ARTIFACT_PATH%"
|
2018-02-09 19:51:30 +00:00
|
|
|
name: "%ARTIFACT_NAME%"
|
2017-10-15 20:53:09 +00:00
|
|
|
|
|
|
|
deploy:
|
2018-07-13 18:22:10 +00:00
|
|
|
description: 'Cutter binaries'
|
2017-10-15 20:53:09 +00:00
|
|
|
provider: GitHub
|
|
|
|
auth_token:
|
|
|
|
secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
|
2018-04-23 17:33:16 +00:00
|
|
|
artifact: "%ARTIFACT_NAME%"
|
2019-03-19 20:35:59 +00:00
|
|
|
draft: true
|
2018-12-24 12:07:46 +00:00
|
|
|
prerelease: true
|
2017-10-15 20:53:09 +00:00
|
|
|
on:
|
2018-12-24 14:23:03 +00:00
|
|
|
appveyor_repo_tag: true
|
2018-07-13 18:22:10 +00:00
|
|
|
DEPLOY: true
|
2018-10-02 11:38:17 +00:00
|
|
|
|
|
|
|
for:
|
2018-12-28 10:23:06 +00:00
|
|
|
-
|
|
|
|
branches:
|
2018-10-02 11:38:17 +00:00
|
|
|
only:
|
|
|
|
- master
|
2018-12-28 10:23:06 +00:00
|
|
|
-
|
|
|
|
skip_non_tags: true
|
|
|
|
|