Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d97392

Browse files
committed
Fixes zxing-cpp#78 Add configuration for build with appveyor + bump version to 1.0.6
1 parent f54e04b commit 1d97392

File tree

4 files changed

+53
-5
lines changed

4 files changed

+53
-5
lines changed

.appveyor.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
version: '{branch}.{build}'
2+
branches:
3+
only:
4+
- /v\d*\.\d*\.\d*/
5+
skip_non_tags: true
6+
image: Visual Studio 2017
7+
build_script:
8+
- cmd: >-
9+
set CMAKE_EXE="cmake.exe"
10+
set DESTINATION="wrappers\winrt\UAP\v0.8.0.0\ExtensionSDKs\ZXingWinRT\1.0.0.0"
11+
set BASE_DIR="%CD%"
12+
13+
cd %DESTINATION%
14+
set DESTINATION=%CD%
15+
16+
cd %BASE_DIR%
17+
set BUILD_LOC=build_uwp_x86
18+
md %BUILD_LOC%
19+
cd %BUILD_LOC%
20+
%CMAKE_EXE% -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
21+
%CMAKE_EXE% --build . --config Release
22+
23+
cd %BASE_DIR%
24+
set BUILD_LOC=build_uwp_x64
25+
md %BUILD_LOC%
26+
cd %BUILD_LOC%
27+
%CMAKE_EXE% -G "Visual Studio 15 2017 Win64" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
28+
%CMAKE_EXE% --build . --config Release
29+
30+
cd %BASE_DIR%
31+
set BUILD_LOC=build_uwp_arm
32+
md %BUILD_LOC%
33+
cd %BUILD_LOC%
34+
%CMAKE_EXE% -G "Visual Studio 15 2017 ARM" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 -DEXTENSION_SDK_OUTPUT="%DESTINATION%" ..\wrappers\winrt
35+
%CMAKE_EXE% --build . --config Release
36+
37+
cd %BASE_DIR%
38+
nuget pack -Version %APPVEYOR_REPO_BRANCH:~1% wrappers\winrt\nuget\ZXingWinRT.nuspec
39+
artifacts:
40+
- path: '*.nupkg'
41+
deploy:
42+
- provider: NuGet
43+
api_key:
44+
secure: OMvgm0WQ+yV7E+yxtmrOn6c/uO/V1fsbBERdz9aQUicqHGImzWqWoSBAankUtxdEwDZx0XrJ5hlUsIuL5tdQD+C8ZKrI1L3FukbXdbqVdKM=
45+
artifact: /.*\.nupkg/
46+
on:
47+
APPVEYOR_REPO_TAG: true

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required (VERSION 3.1.3)
22

33
set (ZXING_VERSION_MAJOR 1)
44
set (ZXING_VERSION_MINOR 0)
5-
set (ZXING_VERSION_PATCH 5)
5+
set (ZXING_VERSION_PATCH 6)
66

77
project (ZXingCpp VERSION ${ZXING_VERSION_MAJOR}.${ZXING_VERSION_MINOR}.${ZXING_VERSION_PATCH})
88

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ This project is a C++ port of [ZXing Library](https://github.com/zxing/zxing).
1111
* Wrapper to create WinRT component
1212
* Wrapper for Android
1313
* Wrapper for WebAssembly
14+
* Python binding
1415

1516
## Supported Formats
1617

wrappers/winrt/nuget/ZXingWinRT.nuspec

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
<package>
33
<metadata>
44
<id>huycn.zxingcpp.winrt</id>
5-
<version>1.0.3</version>
5+
<version>1.0.0</version>
66
<title>ZXingWinRT</title>
7-
<authors>Huy Cuong Nguyen</authors>
8-
<owners>Huy Cuong Nguyen</owners>
7+
<authors>Nu-book Inc.</authors>
8+
<owners>Nu-book Inc.</owners>
99
<licenseUrl>https://github.com/nu-book/zxing-cpp/blob/master/LICENSE</licenseUrl>
1010
<projectUrl>https://github.com/nu-book/zxing-cpp</projectUrl>
1111
<requireLicenseAcceptance>true</requireLicenseAcceptance>
1212
<description>C++ port of ZXing barcode scanner library</description>
1313
<releaseNotes>Bug fixes and improvements for many readers and decoders</releaseNotes>
14-
<copyright>Copyright 2018 Nu-book Inc.</copyright>
14+
<copyright>Copyright 2019 Nu-book Inc.</copyright>
1515
<tags>zxing barcode scanner qrcode</tags>
1616
</metadata>
1717
<files>

0 commit comments

Comments
 (0)