mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 14:29:54 +08:00
add support for CI for Windows on AppVeyor
This commit is contained in:
parent
22407e34a3
commit
495c5c2815
32
README.md
32
README.md
@ -163,7 +163,24 @@ VNote还支持其他很多的功能,比如:
|
|||||||
|
|
||||||
***
|
***
|
||||||
# Downloads (下载)
|
# Downloads (下载)
|
||||||
[Github Release](https://github.com/tamlok/vnote/releases)
|
You could download stable tagged releases or latest rolling build.
|
||||||
|
|
||||||
|
VNote提供定期释出的稳定版本,以及总是保持最新的滚(wen)动(ding)构建版本。
|
||||||
|
|
||||||
|
## Windows
|
||||||
|

|
||||||
|
|
||||||
|
- Tagged releases: [Github Release](https://github.com/tamlok/vnote/releases)
|
||||||
|
- Rolling build: [AppVeyor Artifacts](https://ci.appveyor.com/project/tamlok/vnote/build/artifacts)
|
||||||
|
|
||||||
|
|
||||||
|
- 稳定版本: [Github Release](https://github.com/tamlok/vnote/releases)
|
||||||
|
- 滚动构建版本: [AppVeyor Artifacts](https://ci.appveyor.com/project/tamlok/vnote/build/artifacts)
|
||||||
|
|
||||||
|
|
||||||
|
## Linux
|
||||||
|
|
||||||
|
## MacOS
|
||||||
|
|
||||||
***
|
***
|
||||||
# Build & Development (构建与开发)
|
# Build & Development (构建与开发)
|
||||||
@ -179,6 +196,19 @@ Download [Qt 5.7.0](http://info.qt.io/download-qt-for-application-development) a
|
|||||||
|
|
||||||
下载[Qt 5.7.0](http://info.qt.io/download-qt-for-application-development),导入`VNote.pro`创建一个工程。
|
下载[Qt 5.7.0](http://info.qt.io/download-qt-for-application-development),导入`VNote.pro`创建一个工程。
|
||||||
|
|
||||||
|
### Linux Command Line (Linux命令行)
|
||||||
|
If you prefer command line on Linux, you could follow these steps.
|
||||||
|
|
||||||
|
```
|
||||||
|
cd vnote.git
|
||||||
|
mkdir build
|
||||||
|
cd build
|
||||||
|
# May need to use the qmake in your downloaded Qt.
|
||||||
|
qmake ../VNote.pro
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
# Dependencies (依赖)
|
# Dependencies (依赖)
|
||||||
- [Qt 5.7](http://qt-project.org) (L-GPL v3)
|
- [Qt 5.7](http://qt-project.org) (L-GPL v3)
|
||||||
|
47
appveyor.yml
Normal file
47
appveyor.yml
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
image: Visual Studio 2015
|
||||||
|
|
||||||
|
version: 1.0.{build}
|
||||||
|
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
|
||||||
|
environment:
|
||||||
|
matrix:
|
||||||
|
- QT: C:\Qt\5.7\msvc2015_64
|
||||||
|
PLATFORM: amd64
|
||||||
|
COMPILER: msvc
|
||||||
|
VSVER: 14
|
||||||
|
|
||||||
|
clone_depth: 1
|
||||||
|
|
||||||
|
# scripts that run after cloning repository
|
||||||
|
install:
|
||||||
|
- set PATH=%QT%\bin\;C:\Qt\Tools\QtCreator\bin\;C:\Qt\QtIFW2.0.1\bin\;%PATH%
|
||||||
|
- git submodule update --init --recursive
|
||||||
|
|
||||||
|
# scripts that run before build
|
||||||
|
before_build:
|
||||||
|
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %PLATFORM%
|
||||||
|
- mkdir build
|
||||||
|
- cd build
|
||||||
|
- qmake -r -spec win32-msvc2015 CONFIG+=x86_64 CONFIG-=debug CONFIG+=release ../VNote.pro
|
||||||
|
|
||||||
|
# custom build scripts
|
||||||
|
build_script:
|
||||||
|
- nmake
|
||||||
|
|
||||||
|
# scripts that run after build
|
||||||
|
after_build:
|
||||||
|
- mkdir distrib\VNote
|
||||||
|
- windeployqt.exe --dir .\distrib\VNote %APPVEYOR_BUILD_FOLDER%\build\src\release\VNote.exe
|
||||||
|
- copy "%APPVEYOR_BUILD_FOLDER%\build\src\release\VNote.exe" "distrib\VNote\VNote.exe"
|
||||||
|
- copy "%APPVEYOR_BUILD_FOLDER%\README.md" "distrib\VNote\README.md"
|
||||||
|
- copy "%APPVEYOR_BUILD_FOLDER%\LICENSE" "distrib\VNote\LICENSE.txt"
|
||||||
|
- echo %APPVEYOR_REPO_COMMIT% > "distrib\VNote\version.txt"
|
||||||
|
- cd distrib
|
||||||
|
- 7z a vnote_win_x86_64_portable_%APPVEYOR_BUILD_VERSION%.zip VNote
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
- path: build\distrib\vnote_win_x86_64_portable_%APPVEYOR_BUILD_VERSION%.zip
|
||||||
|
name: portable
|
Loading…
x
Reference in New Issue
Block a user