optimizing windows release

This commit is contained in:
Patrizio Bekerle 2015-07-26 08:11:47 +02:00
parent 988f1bdc2d
commit 326165fbb2
30 changed files with 13 additions and 6 deletions

View file

@ -5,25 +5,32 @@ os: unstable
install: install:
- set QTDIR=C:\Qt\5.4\mingw491_32 - set QTDIR=C:\Qt\5.4\mingw491_32
- set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin - set PATH=%PATH%;%QTDIR%\bin;C:\MinGW\bin
- set RELEASE_PATH=appveyor\release
build_script: build_script:
# using a header file without MemoryBarrier, that causes the build to fail # using a header file without MemoryBarrier, that causes the build to fail
- copy appveyor\qopenglversionfunctions.h %QTDIR%\include\QtGui - copy appveyor\qopenglversionfunctions.h %QTDIR%\include\QtGui
- cd src - cd src
# setting the build number in the header file
- "echo #define BUILD %APPVEYOR_BUILD_NUMBER% > build_number.h" - "echo #define BUILD %APPVEYOR_BUILD_NUMBER% > build_number.h"
- qmake QOwnNotes.pro -r -spec win32-g++ - qmake QOwnNotes.pro -r -spec win32-g++
# - qmake QOwnNotes.pro -r -spec win32-g++ "CONFIG+=debug" # - qmake QOwnNotes.pro -r -spec win32-g++ "CONFIG+=debug"
- mingw32-make -v
- mingw32-make - mingw32-make
- rd /s /q ..\appveyor\QOwnNotes # creating the release path
- md ..\appveyor\QOwnNotes - md ..\%RELEASE_PATH%
- copy release\QOwnNotes.exe ..\appveyor\QOwnNotes # copy the binary to our release path
- cd ..\appveyor\QOwnNotes - copy release\QOwnNotes.exe ..\%RELEASE_PATH%
- cd ..\%RELEASE_PATH%
# fetching dependencies of QT app
- windeployqt --release QOwnNotes.exe - windeployqt --release QOwnNotes.exe
# this dll was missed by windeployqt
- copy ..\libwinpthread-1.dll . /y
# this dll didn't work when released by windeployqt
- copy ..\libstdc++-6.dll . /y
artifacts: artifacts:
# pushing entire folder as a zip archive # pushing entire folder as a zip archive
- path: appveyor\QOwnNotes - path: %RELEASE_PATH%
name: QOwnNotes name: QOwnNotes
deploy: deploy:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.