Appveyor artifact (#37)

This commit is contained in:
xarkes 2017-10-08 08:23:22 +02:00 committed by GitHub
parent 684d42b710
commit 3542f0fd57
3 changed files with 46 additions and 20 deletions

View File

@ -24,19 +24,45 @@ install:
- cmd: if defined BDIR ( %PYTHON%\python.exe -m pip install meson && COPY %PYTHON%\Scripts\meson.py radare2\meson.py ) - cmd: if defined BDIR ( %PYTHON%\python.exe -m pip install meson && COPY %PYTHON%\Scripts\meson.py radare2\meson.py )
- cmd: if defined NINJA_URL ( powershell -Command wget %NINJA_URL% -OutFile radare2\ninja.zip && unzip radare2\ninja.zip -d radare2\ ) - cmd: if defined NINJA_URL ( powershell -Command wget %NINJA_URL% -OutFile radare2\ninja.zip && unzip radare2\ninja.zip -d radare2\ )
# Build r2 and generate sln
before_build: before_build:
- cmd: dir && dir radare2 # Build r2 and generate sln
- cmd: cd radare2 && set "PATH=%PYTHON%;%PATH%" && call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && meson.bat --release && sys\meson_install.bat --with-static radare2_dist && cd .. - cmd: cd radare2 && set "PATH=%PYTHON%;%PATH%" && call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && meson.bat --release --shared && sys\meson_install.bat --with-static dist && cd ..
# Required because meson for windows creates .a
- cmd: cd radare2\radare2_dist && rename *.a *.lib && cd ..\..
# Build cutter # Build cutter
- cmd: set "PATH=%PATH%;%QTDIR%\bin;" && call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && cd src && qmake -tp vc cutter.pro - cmd: set "PATH=%PATH%;%QTDIR%\bin;" && call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 && cd src && qmake -config release -tp vc cutter.pro && cd ..
- cmd: dir
# Build config # Build config
build: build:
project: src\cutter.vcxproj project: src\cutter.vcxproj
after_build:
# Install r2
- cmd: move radare2\dist cutter
- cmd: cd cutter && dir
- cmd: for %%v in (*.dll) do echo %%v
- cmd: for %%v in (*.dll) do ren %%v lib%%v
- cmd: cd ..
# Install cutter
- cmd: windeployqt src\release\cutter.exe --dir cutter
- cmd: move src\release\cutter.exe cutter\
- cmd: set "PATH=C:\mingw\bin;C:\mingw\msys\1.0\bin;%PATH%" && zip -r cutter.zip cutter
# Tests # Tests
test: off test: off
# Artifacts
artifacts:
- path: cutter.zip
name: Cutter
#deploy:
# release: cutter-1.0-$(appveyor_build_version)
# description: 'Cutter Windows'
# provider: GitHub
# auth_token:
# secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk
# artifact: Cutter
# draft: true
# prerelease: true
# on:
# branch: master
# appveyor_repo_tag: false

@ -1 +1 @@
Subproject commit 816a59e45228aca59e943c2b11974a329ad4280e Subproject commit 063509cf702f9286e8bc08be0857af31c6f24248

View File

@ -4,28 +4,28 @@ TARGET = cutter
# The application version # The application version
VERSION = 1.0 VERSION = 1.0
ICON = img/Enso.icns
QT += core gui widgets webengine webenginewidgets
QT_CONFIG -= no-pkg-config
CONFIG += c++11
# Define the preprocessor macro to get the application version in our application.
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
INCLUDEPATH *= .
win32 { win32 {
# Generate debug symbols in release mode # Generate debug symbols in release mode
QMAKE_CXXFLAGS_RELEASE += -Zi # Compiler QMAKE_CXXFLAGS_RELEASE += -Zi # Compiler
QMAKE_LFLAGS_RELEASE += /DEBUG # Linker QMAKE_LFLAGS_RELEASE += /DEBUG # Linker
} }
ICON = img/Enso.icns
QT += core gui widgets webengine webenginewidgets
QT_CONFIG -= no-pkg-config
CONFIG += debug c++11
# Define the preprocessor macro to get the application version in our application.
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
macx { macx {
QMAKE_CXXFLAGS = -mmacosx-version-min=10.7 -std=gnu0x -stdlib=libc++ QMAKE_CXXFLAGS = -mmacosx-version-min=10.7 -std=gnu0x -stdlib=libc++
} }
INCLUDEPATH *= .
unix:exists(/usr/local/include/libr) { unix:exists(/usr/local/include/libr) {
INCLUDEPATH += /usr/local/include/libr INCLUDEPATH += /usr/local/include/libr