Copy the building progress from AppVeyor CI.

Zhitao Chen 2017-01-05 09:30:59 +08:00
parent bbc934c167
commit 48cdb99be2

@ -0,0 +1,36 @@
## Installing dependencies
Qt 5.5 mingw version: http://download.qt.io/archive/qt/5.5/5.5.1/qt-opensource-windows-x86-mingw492-5.5.1.exe
libarchive: https://bintray.com/zealdocs/windows-ci/download_file?file_path=libarchive-3.2.1-win32-mingw492.7z
sqlite3: http://sqlite.org/2016/sqlite-amalgamation-3140200.zip
## Building Zeal (Use the path setting above)
```powershell
# Set Qt Install dir
Set-Variable -Name "qt_dir" -Value "C:\Qt\Qt5.5.1"
$env:Path = "${qt_dir}\5.5\mingw492_32\bin;${qt_dir}\Tools\mingw492_32\bin;C:\Program Files\7-Zip;$env:Path"
# Put libarchive to mingw path
7z x libarchive-3.2.1-win32-mingw492.7z -o${qt_dir}\Tools\mingw492_32\i686-w64-mingw32
# Building sqlite and Put it to mingw path
7z x sqlite-amalgamation-3140200.zip
cd sqlite-amalgamation-3140200
gcc -c sqlite3.c
ar rcs libsqlite3.a sqlite3.o
cp *.h ${qt_dir}\Tools\mingw492_32\i686-w64-mingw32\include
cp *.a ${qt_dir}\Tools\mingw492_32\i686-w64-mingw32\lib
# Get and building zeal
git clone -q --branch=master https://github.com/zealdocs/zeal.git C:\projects\zeal
qmake -r -spec win32-g++
mingw32-make
```
## Packaging
to be added
You can use Qt Creator run and debug the program now.